Search tutorials
Checking that the text file has loaded
The second frame checks that the data file has been loaded. Add the
following code on frame two of the actions layer. It uses the value
of the variable End to decide whether the file has been loaded. Once it has
been loaded, the movie can play.
sitestext.onLoad = function() {
if (sitestext.End == 1) {
gotoAndPlay("end");
}
else {
gotoAndPlay("start");
}
}
Add a stop action to frame three of the action layer.
| » 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!