View Full Version : Preloader of my own animation
amp
August 28th, 2003, 07:37 PM
How do I create a preloader with my own animation?
I've already created the animation, so can I get it to play in rythm with % loaded?
eki
August 29th, 2003, 06:16 AM
PercentageLoaded=(getBytesLoaded*100)/getBytesTotal;
frameToGo=Math.round((numberOfFrames*PercentageLoa ded)/100);
myAnimation.gotoAndStop(frameToGo);
amp
August 29th, 2003, 11:39 AM
And I customize FrameToGo and myAnimation?
jingman
August 29th, 2003, 11:47 AM
What eki is saying is:
Your animation is say, 50 frames long.
To make it advance with the % loaded, divide bytes loaded by bytes total (as in any preloader), multiply that by the number of frames in your animation (in our case, 50), and round that number, since you can't go to partial frames.
Then tell your animation to go to this frame number with 'animation.gotoAndPlay(thatNumber)'.
Right eki? Don't wanna step on anyones toes here.
claudio
August 29th, 2003, 11:57 AM
Maybe this helps
http://www.kirupaforum.com/forums/showthread.php?s=&threadid=32382
amp
August 29th, 2003, 12:02 PM
I'm so stupid... tell me what I'm doing wrong? :a:
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.