Preloader for AVI in Flash

  • Started
  • Last post
  • 2 Responses
  • lyrek

    Flash folks, need your assistance.

    I've brought an AVI into Flash and have it saved as mc_avi. The MC is on frame 5 of the main timeline. This is the preloader I have on frame 1:

    total = reel.getBytesTotal();
    loadd = reel.getBytesLoaded();
    done = int((loadd/total)*100);
    loader.gotoAndStop(done);
    ifFrameLoaded (done=100) {
    gotoAndStop(5);
    }

    Frame 3 says gotoAndPlay(1);

    I have a dynamic text box on the stage called "Done" but as far as I can tell, the movie doesn't even play (much less show the preloader working) until the whole swf is loaded...

    does that make sense? my preloader isn't working, i think, because the movie doesn't show until it's fully loaded, in which case the preloader is superfluous....

    any help you can give would be greatly appreciated.

    thx,
    liam

  • Bio0

    load as an external swf with its own preloaded?

    just a thought, i am not a big time flash guy. more of a small fish in a big sea of hungry pirates... or something.

  • lyrek0

    yarrr..

    i'll give that a try, matey. thanks!