Search tutorials
Loading Loop
Because the script is on a separate timeline, you need to create a loop in your flash movie that waits for the script to finish. Here is the code that I used in the sample .fla to make the loop:if (loading eq "YES") {
gotoAndPlay (_currentframe-1);
} else {
gotoAndStop (1);
}
When you click on the button that loads the script, the sample .fla also sets the 'loading' variable to 'YES'. The movie knows when the script is done because it tells the movie that 'loading=NO'. | » Level Intermediate |
|
Added: 2001-12-20 Rating: 8 Votes: 168 |
| » Author |
| Can be found at www.indivision.net. |
| » Download |
| Download the files used in this tutorial. |
| Download (6 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!