I am loading a .swf into my main flash sequence using the loadmovie command.
will it need a preloader, or will it only appear when fully loaded? thx.
I am loading a .swf into my main flash sequence using the loadmovie command.
will it need a preloader, or will it only appear when fully loaded? thx.
Depending on this size of the loaded swf you should have a preloader, because there will most likely always be a delay because your loading the file from and external server rather then from inside the document. You can attach the preloader code to the movieclip that your loading your swf into.
Code:
on(enterFrame){
if(totalBytes == undefined)
totalBytes = this.getBytesTotal;
}else{
loaded = this.getBytesLoaded;
remaining = this.getBytesTotal-this.getBytesLoaded;
percent = int(this.getBytesLoaded()/this.getBytesTotal() * 100);
_root.percentoutput = percent;
}
}
Hope this helps.
Kyle
:: Copyright KIRUPA 2024 //--