package jp.nyatla.as3utils { import flash.utils.*; import flash.net.*; import flash.events.*; public class NyMultiFileLoader extends EventDispatcher { public var _loaders:Array=new Array(); public function NyMultiFileLoader() { } public function addTarget(i_fname:String,i_format:String,i_accept:Function):void { var loader:NyURLLoader = new NyURLLoader(); loader.dataFormat =i_format; loader.addEventListener(Event.COMPLETE,NyMultiFileLoader.onCompleteTarget); //loader.addEventListener(IOErrorEvent.IO_ERROR, this.dispatchEvent); //loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.dispatchEvent); loader._parent=this; loader._accept=i_accept; loader._target=i_fname; loader._index=this._loaders.push(loader)-1; } public function multiLoad():void { //ダウンロードをまとめてGO for(var i:int;i