preload dynamic text
- Started
- Last post
- 8 Responses
- qaddisin
does anyone know how to do this or know of any good tutorials/source files. cant find anything (that is helpful), anywhere.
thanks.
- qaddisin0
anyone?
- 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);
- qaddisin0
that should be some all time record for the most helped-people -- you'd win without a doubt. thanks again and again... and again :)
- qaddisin0
is there a way to preload text coming from a php file using loadVariables(); instead of
LoadVars();thanks.
- unfittoprint0
loadVariables is somewhat deprecated.....
The loadVars will hold all the variables from th external source in only one place: itself.
php loading usage:
MyVars.load("info.php");
- qaddisin0
thanks once again. some day i want to be just like you. :)
- unfittoprint0
I'm only 5 years old.