e.currentTarget.data

var str_ary:Array = new Array();
for (var i:int = 1; i <= 100; i++) {
        var tmp_lv:URLLoader = new URLLoader();
        var tmp_url:String = i + ".txt";/*文件路径*/
        tmp_lv.addEventListener(Event.COMPLETE, onDataOk);
        tmp_lv.addEventListener(IOErrorEvent.IO_ERROR, onDataErr);
        tmp_lv.load( new URLRequest(tmp_url));
        function onDataOk(e:Event):void {
                var tmp_str:String = (e.currentTarget.data).toString();
                str_ary.push(tmp_str);
                trace("已成功加载" + str_ary.length);
        }
        function onDataErr(e:IOErrorEvent):void {
//                trace("加载错误");
        }
}

你可能感兴趣的:(current)