A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Load two movies and start same time

  1. #1
    Junior Member
    Join Date
    Oct 2000
    Posts
    1

    Post

    Does any body know how to load two seperate movies with their own preloaders and make them start at the same time?

  2. #2
    Bob (the singing sock)
    Join Date
    Aug 2000
    Location
    Århus, Denmark
    Posts
    472
    In the loops of each movie.

    each movie sets a variabel "thisloaded" to "ok" when the level is loaded.

    // check if level is loaded
    ifFrameLoaded ("lastframe") {
    thisloaded = "ok";
    }
    if (thisloaded ne "ok"){
    gotoAndPlay("loopcontinue");
    } else {
    //checks if the other level (in this case _level2)is loaded, if so, it plays. The script in the movie in level1 would check the state of _level2.thisloaded.
    if (_level2.thisloaded eq "ok"){
    gotoAndPlay("continue");
    _level2.gotoAndPlay("continue");
    }
    }
    Get the idea?
    -K

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