Hello,
i would like to load the information contained in a specific tag of my xml page inside a textArea component. The following code displays the entire xml page including the tags. Anybody know how to tell flash to display only the info from inside a specific tag?
code:
var xml:XML;
var urlRequest:URLRequest = new URLRequest(“mlb.xml”);
var urlLoader:URLLoader = new URLLoader();
urlLoader.dataFormat = URLLoaderDataFormat.TEXT;
urlLoader.addEventListener(Event.COMPLETE, urlLoader_complete);
urlLoader.load(urlRequest);
function urlLoader_complete(evt:Event):void {
xml = new XML(evt.target.data);
textArea.text = xml.toXMLString();
}
thanks