Strike Force Heroes 2
The explosive sequel to the hit game Strike Force Heroes!
3.95 / 5.00 9,652 ViewsObsolescence
Defeat the enormous mechanical beasts--and become one of them.
4.02 / 5.00 44,827 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*
NG BBS & Review moderator // PM your randomness and other ramble!