//data.xml文字檔 <?xml version="1.0" encoding="utf-8"?> <test> <item id="AAA"></item> <item id="BBB"></item> <item id="CCC"></item> <item id="DDD"></item> </test> //ACTION SCRIPT 3.0 var loader:URLLoader = new URLLoader(); loader.addEventListener(Event.COMPLETE, loadXMLHandler); loader.load(new URLRequest("data.xml")); function loadXMLHandler(e:Event):void{ try { var xml:XML = new XML (e.target.data); output_txt.text = xml; }catch(e:TypeError){ output_txt.text = e.message; } } ※蘭さん:基本讀取外部XML的方法