A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Preloading trouble

  1. #1
    Hello!


    I load into my mainmovie another swf that contains: scene1 preloader, and scene2 the stuff that is preloaded.

    When i load the swf into level1 in my mainmovie, the preloader works fine, but when i load it into an mc in my mainmovie, the preloader doesent work.

    I use the following actions:
    Code:
    if (_root.getBytesLoaded()==_root.getBytesTotal()) {
        nextFrame();
    } else {
        gotoAndPlay(1);
    }

  2. #2
    Senior Member chi-styler's Avatar
    Join Date
    Jul 2001
    Location
    Bristol, UK
    Posts
    1,237
    Hi,

    If it's in a MC, are you still wanting to reference the main timeline? In which case I think you may need

    _root.nextFrame();

    and

    _root.gotoAndPlay(1);


    Chi

  3. #3
    Originally posted by chi-styler
    Hi,

    If it's in a MC, are you still wanting to reference the main timeline? In which case I think you may need

    _root.nextFrame();

    and

    _root.gotoAndPlay(1);


    Chi

    No no no!

    I want that the swf that i load will check if it is loaded (as i said, the preloader is within the swf that i load), so it still has to check itself, not something in the mainmovie, its just that when i load it into an mc in my mainmovie, it doesent work anymore, and when i load it into my mainmovie level 1 it works.

  4. #4
    Senior Member chi-styler's Avatar
    Join Date
    Jul 2001
    Location
    Bristol, UK
    Posts
    1,237
    oh, misunderstood

    What about it doesn't work though?

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