Load Variables
April 17, 2000
- Open the Frame Properties dialogue box in frame 1, (either
double-click on the second frame in the timeline or move the
playhead to frame 1 and select Modify > Frame).
- On the Actions tab, click the plus sign to add an action.
- Select Load/Unload Movie
- In the dialogue for this action, you have three choices of what
to load/unload. Select Load Variables into Location:
- For URL: type "data.txt" (without the quotation marks).
- For Location, select the Level radio button and type "0" (Zero,
without the quotation marks) in the field.
What we just did:
- Load movie - loads an outside file into the Flash movie during
playback (usually this is used to load another Flash movie, like
a hip-hop - or techno - loop).
- Load variables - tells Flash to look for variables in the file we
are loading.
- URL: location of the file. We are going to assume that the .swf
and the .txt files will be in the same directory.
- Location=Level 0: Level 0 is the main timeline of the movie, where
our editable text fields reside. We want the variables to load
into the same level as the editable text fields so that the text
fields can display the variables.
Test the movie (CTRL - ENTER) and watch what happens. You should
see something like this:
Getting Started
Tricks & Data, Flash Yin & Yang
Text Fields and URL Encoded Data
|