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

Chapter 9. Controlling Information Flow > Loading External Variables

Loading External Variables

You don't actually have to initialize variables inside your movie. Flash lets you keep variables outside your Flash movie in a text document you can load whenever you need them. This way, you can easily change the variables in the text document, and thereby change the Flash movie, without even having to edit the movie. For example, build a quiz with variables holding the questions and answers. Keep the variables in a text document, so when you want to change the quiz, simply edit the text document. You can also set up the variables in the text document to be generated automatically with server-side scripts based on other external data. Then your Flash movie can read the variables in the text document with only the most recent or user-customized values. The external text document can contain as many variables as you want, but it needs to be in MIME format, which is a standard format that CGI scripts use. The variables are written in the following form:

variable1=value1&variable2=
value2&variable3=value3


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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