-
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
-
chillin like rrrrreally hard
-
ctually ive been trying to do this from one of FLashkit's own tute's but its not working for me..
and ive done everything step by step 4 times!
arrggh..
-
chillin like rrrrreally hard
sorry...
I can't help you...
maybe someone in the FK-team
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|