SetVariable sets the value of the Flash variable specified by variableName to the value specified by value. The argument type for both arguments is string.
For example, an HTML page could have the following:
The HTML looks like this:
This allows you to have a link inside the HTML page and send that information (myvariable=your ad here ) into the Flash movie (see Figure 2.41). Note the ID tag as well as the "swLiveConnect=true NAME=pocketpc" in the EMBED tag. The ID tag is so the Pocket PC knows where to send the data to. The swLiveConnect is for the benefit of the Netscape users; while it's not needed for the Pocket PC it's a good idea to put it in there in case you need your content to be viewable on desktops as well as devices.
The Flash movie simply has a variable text field called myvariable .