Flash Preloader / NO LoadMOVIE!?

Out of context: Reply #2

  • Started
  • Last post
  • 21 Responses
  • unfittoprint0

    you could make a preloader MC, and within it a function that targets a loaded MC in the Stage.

    loadMC = function(target){
    textbox.text = Math.round(target.getBytesLoaded...
    if (target.getBytesLoaded() == target.getBytesTotal() && target.getBytesTotal() >10)
    clearInterval(loadLoop);
    this.removeMovieClip()
    }
    }

    startLoad = function(target){
    clearInterval(loadLoop);
    loadLoop = setInterval(this, "loadMC", 30, target);

    make

    loadMC = function(target, path){
    target.loadMovie(path);
    this.attachMovie("preloader","pr... 666, {target:target});
    }

    //usage exemple

    loadMC(this.holder, "content/myMovie.swf);

View thread