Code:
this.createTextField("my_txt", 10, 10, 10, 320, 100);
my_txt.autoSize = "left";
my_txt.border = true;
my_txt.multiline = true;
my_txt.wordWrap = true;
var reviews_xml:XML = new XML();
reviews_xml.ignoreWhite = true;
reviews_xml.onLoad = function (success:Boolean):Void {
if (success) {
var childItems:Array = reviews_xml.firstChild.childNodes;
for (var i:Number = 0; i < childItems.length; i++) {
my_txt.text += childItems[i].firstChild.firstChild.nodeValue + "\n";
}
} else {
my_txt.text = "There is either no content to load, or we are about to load content in...";
}
}
reviews_xml.load("text.xml");
ok this is the actionscript code i have right now in there... but i don't want it to create a text box, i want it to use an assigned textbox called "Content"
Actionscript 2.0 is what i am using...
THANKS!
Bookmarks