Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.23 / 5.00 3,881 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.93 / 5.00 4,634 ViewsHello, I am making an animated preload in AS2.
I have made 100 frames, and each frame does something different. I am no programmer, but I was wondering if there was a code to make it so that each percent that goes up, the animation would continue.
Please help me out, I'm trying to make the best preloader ever!
What's it gonna be? You have to decide.
Tits, or destiny...
...Tits...
gotoAndStop(percent);
Next time, try the Flash Forum
Note:
At 8/27/11 12:53 AM, Momo-the-Monkey wrote: gotoAndStop(percent);
Next time, try the Flash Forum
Note:
Sorry about that, misread it...
Anyway, the code you posted was the same as this one tutorial video's code that I used. I have no idea what's wrong with it but basically it stops at the first frame, and is stuck there until it is done loading. After it loads it goes straight from frame 1 to the play button.
Here is my code:
This code is on the main timeline, not inside the movieclip
stop();
onLoad = function() {
total = _root.getBytesTotal()
loaded = 0
}
loading_bar.onEnterFrame = function() {
loaded = _root.getBytesLoaded()
loading_bar.gotoAndStop(percent);
percent = loaded/total*100
}
The movieclip which contains the animation is the instance of loading_bar.
What's it gonna be? You have to decide.
Tits, or destiny...
...Tits...
At 8/27/11 01:03 AM, StompRocket2009 wrote:At 8/27/11 12:53 AM, Momo-the-Monkey wrote: gotoAndStop(percent);Sorry about that, misread it...
Next time, try the Flash Forum
Note:
Anyway,
And still proceeding... *sigh*