A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: preloader problem

  1. #1
    Junior Member
    Join Date
    Jun 2004
    Posts
    9

    preloader problem (due tonight! help!)

    my preloader works fine, but after it loads my movie, it just sits there. doesn't go to the next scene or anything. what am i missing. here's the code that i have

    onClipEvent (load) {
    if (_parent.getBytesTotal() == _parent.getBytesLoaded()) {
    quickPlay = true;
    } else {
    preLoad = (_parent.getBytesTotal() * 0.75); //percent to preload
    }
    _parent.stop();
    }

    onClipEvent (enterFrame) {
    gotoAndStop(loadedIndicatorFrame());
    if (quickPlay == true) { //quickly play the anim
    if (_currentframe == _totalframes) {
    _parent.play();
    }
    } else { //wait for the preload
    if (_parent.getBytesLoaded() >= preLoad) {
    _parent.play();
    }
    }
    }
    Last edited by solyloquyz; 06-29-2004 at 04:47 PM.

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