Preloader for swfs within another movie
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
    Posts
    14

    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()){

    gotoAndPlay(1);
    }
    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

    ...anyone???

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

  3. #3
    Junior Member
    Join Date
    Jan 2003
    Posts
    14
    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

Poll by Flashkit.com