Connecting the movie to the text file
We'll use the structure shown below for our movie - three frames and layers called actions, combo and labels. Actions will have a keyframe in each of the frames. Combo and labels will have a keyframe in frames 1 and 3.
In the labels layer, name the first frame start and the third frame end. On the first frame of the action layer, enter the following actionscript.
//load the text file
var sitestext = new loadVars();
This script creates a loadVars object called sitestext and loads the file sites.txt into it. When you reference the variables from the file, you'll need to refer to them as sitestext.Sites and sitestext.URLs
|» Level Intermediate|
Rating: 7.34 Votes: 29
|Applications Developer Marconi Australia|
|Download the files used in this tutorial.|
|Download (369 kb)|
|More help? Search our boards for quick answers!|