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();
sitestext.load("sites.txt");
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 |
|
Added: 2002-08-13 Rating: 7.85 Votes: 26 |
| » Author |
| Applications Developer Marconi Australia |
| » Download |
| Download the files used in this tutorial. |
| Download (369 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!