import flash.events.Event;
import flash.net.URLLoader;
import flash.net.URLRequest;
public function loadXML():void {
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.load(new URLRequest("users.xml"));
xmlLoader.addEventListener(Event.COMPLETE,handleLoad);
}
public function handleLoad(event:Event):void{
var usersXML:XML = new XML(event.target.data);
myTextArea.text = usersXML.toXMLString();
}