Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
How to Make Flash & PHP Talk
Author: Joseph Miller
| Website: http://www.indivision.net |
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: 7.62 Votes: 168
Hits: 3647
|
| » Author |
|
Can be found at www.indivision.net.
|
| » Download |
|
Download the files used in this tutorial.
|
|
Download (6 kb)
|
|
Get conversion and unzipping tools
for PC and Mac here!
|
| » Forums |
|
More help? Search our boards for quick answers!
|
|
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.
|
|
|