PDA

View Full Version : HTML into Dynamic Text Field in AS3



hoyle_billy
June 29th, 2009, 09:22 PM
Hello, I'm trying to load some html into a dynamic text field. All the hints I've found online are in AS2 and use the LoadVars function which is no longer a part of AS3. Can someone help me convert this to AS3?


myLoadVars = new LoadVars();
myLoadVars.onLoad = function() {
// the data is loaded in the myLoadVars object as a property of the object
myText.htmlText = myLoadVars.myHTMLdata;
}
myLoadVars.load("myHTML.html");

greetification
June 30th, 2009, 12:20 PM
Can you explain more about what you are trying to accomplish? For instance what are you loading data from? XML? a text file? a web service?