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

Chapter 11. Variables > Loading Variables

Loading Variables

One of the key factors and appeals of Flash is that you don't always have to initialize your variables within the Flash document. Flash gives you the power to read variables from external sources as well, such as a text file, a database query, a middleware script (CGI, PHP, JSP, ASP, ColdFusion, and so on), and HTML tags. The ability to read from external sources makes it easier to update your Flash movie because, instead of opening Flash to edit your document and publishing it again, you can simply update the external file. For example, let's say you have content within a Flash document that needs to be updated on a daily basis. You could set that up to read from an external text file. This becomes extremely handy when you create a Web site or application and want to update some information within. You don't need to know Flash in order to update the information; all you need to know is how to use NotePad (Windows) or SimpleText (Macintosh).

TIP

When creating your external text file, write it without any line breaks or spaces and try to use only an ampersand instead of the word 'and.' Flash will understand an external text file better this way.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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