A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Preloader for swfs within another movie

  1. #1
    Junior Member
    Join Date
    Jan 2003

    Preloader for swfs within another movie

    Hi guys and gals!

    I have this little problem, Ive done a little preloader, nothin fancy, it just tells the bytes loaded. It works fine for my "big" movie, but when I load smaller swfs into a MC that I have in my bigger movie, the preloader for that movie wont work...when I click the button that loads the new swf into that mc, nothing happens...then nothing...and then the movie just appears, without the preloader, and it is the same code for the preloader that I use in the main movie...

    Do I make any sense?

    I just do it like this, maybe Im doin it all wrong;

    if (_root.getBytesLoaded()!=_root.getBytesTotal()){

    something like that, I just thought of something, is the problem that Im refering too _root, and the smaller movie is reached in some other way? I dont know


  2. #2
    Join Date
    Apr 2001
    Montréal, Québec.
    Yep! The use of _root is the problem!

  3. #3
    Junior Member
    Join Date
    Jan 2003
    Hmm, ok so what do I use instead, the name for the empty MC?

    somffin like _contents.getBytesLoaded();

    Forgive me for being a new newbie

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