A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: PLEASE help Me out!!! plz?

  1. #1

    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

  2. #2
    chillin like rrrrreally hard tijsch's Avatar
    Join Date
    Jun 2001
    Location
    where?
    Posts
    168

  3. #3
    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..

  4. #4
    chillin like rrrrreally hard tijsch's Avatar
    Join Date
    Jun 2001
    Location
    where?
    Posts
    168
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center