XML in flash

stop();
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();

xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("banner.xml"));

function LoadXML(e:Event):void {
xmlData = new XML(e.target.data);
trace(xmlData);

}

//load swf
var myLoader:Loader = new Loader();
move1.addChild(myLoader);
var url:URLRequest = new URLRequest("rbd_motorinsurance.swf");
myLoader.load(url);

0 comments:

Post a Comment