loader疑惑

今天寫本身的loader管理類時,發現一個問題,若是證實flash是併發加載資源的呢?併發

var loader:Loader=new Loader;
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onChildComp3, false, 0, true);
loader.contentLoaderInfo.addEventListener(Event.OPEN, onChildOpen3, false, 0, true);
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onChildPro3, false, 0, true);
loader.contentLoaderInfo.addEventListener(HTTPStatusEvent.HTTP_STATUS, onChildHttp3, false, 0, true);資源

var loader2:Loader=new Loader;
loader2.contentLoaderInfo.addEventListener(Event.COMPLETE, onChildComp3, false, 0, true);
loader2.contentLoaderInfo.addEventListener(Event.OPEN, onChildOpen3, false, 0, true);
loader2.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onChildPro3, false, 0, true);
loader2.contentLoaderInfo.addEventListener(HTTPStatusEvent.HTTP_STATUS, onChildHttp3, false, 0, true);flash

var loader3:Loader=new Loader;
loader3.contentLoaderInfo.addEventListener(Event.COMPLETE, onChildComp3, false, 0, true);
loader3.contentLoaderInfo.addEventListener(Event.OPEN, onChildOpen3, false, 0, true);
loader3.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onChildPro3, false, 0, true);
loader3.contentLoaderInfo.addEventListener(HTTPStatusEvent.HTTP_STATUS, onChildHttp3, false, 0, true);List

loader.load(new URLRequest("assets/comp.swf"));
loader2.load(new URLRequest("assets/nav.swf"));
loader3.load(new URLRequest("assets/vector.swf"));loader

如上一段代碼,運行時,老是會先輸出loader的全部信息,在loader完成後再加載loader2,在loader2完成後再加載loader3~彷佛並無併發加載~sse

我理解的併發加載是各自loader的progress信息會交錯輸出。不知道這樣理解對不對~co

如今還沒解決這個問題~鬱悶~new

相關文章
相關標籤/搜索