未分類

AS3 XML

var xml:XML;

var urlloader:URLLoader = new URLLoader();

var urlRequest:URLRequest = new URLRequest(“ticky.xml”);

urlloader.load(urlRequest);

urlloader.addEventListener(Event.COMPLETE,loadComplete);

function loadComplete (e:Event):void {

xml = new XML(e.target.data);

// for (var i:int =0; i