All pastes #798026 Raw Edit

Something

public text v1 · immutable
#798026 ·published 2007-11-26 14:53 UTC
rendered paste body

//Create LoadVars object and load file
var myData = new LoadVars()
//myData.load("anastasio.asp") //asp line


function getData() {
myData.load("http://wfmy-iweb01/news/loading/BD/anastasio.php") //php line
myData.ref = this
//Fetch data 
myData.onLoad = function(success){
	//if(success){
		trace(success);
		
		for(var i=0; i<this.cant; i++){
			
			 var new_txt:TextField = _root.createTextField("Title_txt"+i, i, 271,74, 227, 20)
			 //["Title"+i].text = "this is my first test field object text";
			  //new_txt.text = "abc";
			
			this.ref["Title_txt"+i].htmlText = this["Title"+i]
			//this.ref["Details_txt"+i].text = this["Details"+i]
//			this.ref["holder_mc"+i].loadMovie(this["Image"+i])
		} 
	//} else trace("Error loading data") 
} 

 


}
//getData();
getID = setInterval( getData, 2000); 

stop()