• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. Interfacing with External Da... > Setting Flash Variables from Within ...

Setting Flash Variables from Within HTML

You can easily assign the initial values for variables in your Flash movie by way of HTML. In the following section, “External Data Files,” you’ll see how to load variables at runtime. That is, you can load variables any time while the movie plays. Setting variables from HTML is different because only the initial values get set (right before the movie starts). It’s still a pretty nifty feature because you can place timely data in the HTML file and the Flash movie will have its variables set accordingly.

As a quick example, every morning you could type in a new value for the wordOfTheDay variable and visitors to your site would see the day’s word. Even better, if the HTML page is generated dynamically (for example, from a Cold Fusion or ASP page), you could set that variable automatically. Just remember that the technique you’re about to see sets only the starting value for a variable.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint