A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Preloader isn't working (from tute)

  1. #1
    I just tried the Bytes preloader from the tutorials and i can't gett the last stage to work...

    everything works (it counts and "preloads")
    but when its done it jumps to the 100th frame on the next scene and stops..??!?!?!?!?

    here's the code.. (same as the given .fla and still doesn't work..)
    ----------------------------
    loadedbytes=getBytesLoaded();
    totalbytes=getBytesTotal();
    loadedkbytes=Math.ceil (loadedbytes/1000);
    totalkbytes=Math.ceil(totalbytes/1000);
    if (loadedbytes == totalbytes) {
    nextScene ();
    }
    frame = int(loadedbytes/(totalbytes/100));
    tellTarget (_root.loader) {
    gotoAndStop (_root.frame);
    }
    ----------------------------


    so ??! has anyone else had this problem?!>
    on the given .fla he only has 1 frame on the "scene 2" i have obviously more..

    but i dont think it would have affected it..

    ??!?

    Thanks for the help

    James

  2. #2
    has anyone encountered this b4?

  3. #3
    some help plz.?! i really dunno where it went wrong..

  4. #4
    Senior Member
    Join Date
    Jan 2001
    Posts
    235
    omg. i am having the same problem with the same preloader and it's making me soooo mad. you know what's weird? if i take out the

    gotoAndStop (_root.frame);


    and put in


    _root.loader.gotoAndPlay("LetsDance");

    (LetsDance being my next scene)

    it goes to the next scene just fine and plays just fine. the only problem is that the loader just plays. . it doesn't move in increments per frame as it's supposed to.

    now. if i just leave

    gotoAndStop (_root.frame);

    and i add
    _root.loader.gotoAndPlay("LetsDance");

    under it, it JUMPS TO FRAME 159!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!IN THE THIRD SCENE!!!!!!!! IMMMMM SOOOOOOOOOOO MAAADDDDDDDDDDDDD!!!!!!!!!!! IIIIIIIII HHHHHATEEEEEEE EVERYTHIGNNNNNNGGG>l.

    um. ok. i don't feel any better. not even one bit. and the thing that's going to upset me the MOST is that no one is even going to reply to this post.

    botti.

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