preload dynamic text
preload dynamic text
Out of context: Reply #2
- Started
- Last post
- 8 Responses
- unfittoprint0
ie. from an external source:
myVars= new LoadVars();
myVars.onLoad = function(success){
if(success){
myText.text= this.txtVar;
} else {
trace("error!!");
}
};myVars.load("mytxt.txt");
//attach preloader
attachMovie("loader","loader", 100);//AS insided your preloader
preload=function(target){
trace(Math.round((target.getByte...
if(target.getBytesLoaded()==targ... AND target.getBytesTotal()>4){
clearInterval(loadLoop)
trace(target + "loaded!!!");
this.removeMovieClip();
}
}
loadLoop = setInterval(preload, 30);