//test.txt文字檔 v1=這是變數!!&v2=這是變數2!!&v3=這是變數3!! //ACTION SCRIPT 3.0 var loader:URLLoader = new URLLoader(); lloader.dataFormat = URLLoaderDataFormat.VARIABLES; loader.addEventListener(Event.COMPLETE,loaderCompleteHanndler); loader.load(new URLRequest("test.txt")); function loaderCompleteHanndler(e:Event):void{ var vars:URLVariables = e.target.data; output_txt.text = vars.v1 + vars.v2 + vars.v3; //這是變數!!這是變數2!!這是變數3!! } ※蘭さん:txt檔記得轉存為UTF-8的格式,不然可是會出現亂碼喔!