SuperKurt
01-16-2003, 06:31 PM
I've tried to adapt a Percentage type Preloader to reveal the word loading as it goes. I've used a mask and put it in a seperate scene. I have three scenes, Pre-Loader, Girl and Manikin.
Here is the code I've used:
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
percent_done = int((loaded_bytes/total_bytes)*100);
mask.gotoAndStop(percent_done);
ifFrameLoaded ("Manikin", 30) {
gotoAndPlay("Girl", 1);
}
When I publish, it just plays the first frame of the movie and then goes to the next scene.
You can find the original .fla file that I'm working on at http://www.downtownmedia.com/graf/grafv2.fla .
Any help would be appreciated. Even if you can just spot the bug.
Thanks in advance.
- Kurt
Here is the code I've used:
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
percent_done = int((loaded_bytes/total_bytes)*100);
mask.gotoAndStop(percent_done);
ifFrameLoaded ("Manikin", 30) {
gotoAndPlay("Girl", 1);
}
When I publish, it just plays the first frame of the movie and then goes to the next scene.
You can find the original .fla file that I'm working on at http://www.downtownmedia.com/graf/grafv2.fla .
Any help would be appreciated. Even if you can just spot the bug.
Thanks in advance.
- Kurt