var loader:URLLoader=new URLLoader(); var urlFilepath:URLRequest=new URLRequest("D:/flexworkspace/test.json") loader.addEventListener(Event.COMPLETE,loadTextComplete); loader.load(urlFilepath); //讀取完成的監聽器 private function loadTextComplete(event:Event):void { //讀取完成後打印 trace(event.target.data); }