PLEASE help Me out!!! plz?
Hi,
I am trying to do this preloader thing, (bytes preloaded)and the preloader essentially works, but when it is finished its jumping to the 100th frame and stopping?
Here is the code.. (im pretty sure that everything else is fine.. )
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
loadedkbytes = Math.ceil(loadedbytes/1000);
totalkbytes = Math.ceil(totalbytes/1000);
if (loadedbytes == totalbytes) {
gotoAndStop (26);
}
frame = int(loadedbytes/(totalbytes/100));
tellTarget (_root.loader) {
gotoAndStop (_root.frame);
}
This line here : frame = int(loadedbytes/(totalbytes/100));
thats what i think is makig it go to the 100th frame.. cause when i change that! it goes to whatever frame (and stops) its supposed to go to... eg: frame = int(loadedbytes/(totalbytes/24)); <-- Goes to frame 24
but the preloader itslef doesn't work then... (eg: the % part)
I dont know what it is but i can't fix it, can someone pleeez help me out!!
thanks
james