Flashery

Out of context: Reply #7

  • Started
  • Last post
  • 13 Responses
  • unfittoprint0

    you could have a function that checks if the movie's loaded.

    //check function
    check=function(targetMovie){
    if(targetMovie.getBytesLoaded() == targetMovie.getBytesTotal() && targetMovie.getBytesTotal() >4 ){
    clearInterval(checkLoop);
    waitingMC._visible=false;
    targetMovie._visible=true;
    }
    }

    //the loop function
    //waitingMC =anim. sequence

    preload = function(targetMovie){
    waitingMC._visible=true;
    targetMovie._visible=false;
    clearinterval(checkLoop);
    checkLoop = setInterval(this,"check", 30, targetMovie);
    }

    //you just to call it using
    //something like:

    contentMC.loadMovie("myMovie.swf...
    preload(contentMC);

View thread