TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

preloader help

Page: 1 Reply
Feb 23rd 2002#32558 Report
Member since: Jan 19th 2002
Posts: 800
ok im trying to make a preloader and its not working right, i have a movie clip that im trying to use for it, and these are the actions i have on the movie clip

onClipEvent (enterFrame) {
percentage = Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100);
percent = percentage+"%";
if (percentage=100) {
nextScene ();
}
}

the "percent" variable is the one for the text box displaying the percentage. what happens is when i start the movie, it is automatically at 100% and then it doesnt play scene 2. the movie file is pretty big because i put a song in there, but it still starts off at 100 %

wtef :confused:
Reply with Quote Reply
Feb 23rd 2002#32607 Report
Member since: Aug 9th 2001
Posts: 2333
In your test movie screen, click on 'show streaming'. Or you can upload it. Your code is correct i think. Just make sure you have your variable named in the main stage as 'prelaoder', but the 'show streaming option' when you test movie, is your problem i think.
Reply with Quote Reply
Feb 23rd 2002#32649 Report
Member since: Jan 19th 2002
Posts: 800
ok ill try that when i get a chance, thanks
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum