【发布时间】:2011-10-04 05:45:22
【问题描述】:
我使用了下面的代码。
停止(); this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onLoadingAction); this.loaderInfo.addEventListener(Event.COMPLETE, onLoadedAction); this.loaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErroAction); 函数 onLoadingAction (e:ProgressEvent):void { 跟踪(“加载”); } 函数 onLoadedAction (e:Event):void { this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, onLoadingAction); gotoAndStop(currentFrame+1); } 函数 ioErroAction (e:IOError):void { trace("开发本" + e.toString()); }此代码支持 chrome 和 firefox。但如果我使用 IE 运行,它会卡在 onLoadingAction。
我需要做什么才能在 IE 中运行?
【问题讨论】:
-
只是出于好奇,你能输出
onLoadingAction的踪迹吗? -
@goliatone:完整阅读我的问题。
-
我确实读过它。我只是不明白您所说的卡在 onLoadingAction 是什么意思。我在 IE 中遇到了类似的问题。
-
卡住的意思是......它没有移动到 COMPLETE 事件处理程序,而是使用 progressEvent 事件处理程序。
-
检查 Mike Welsh 的答案...效果很好。
标签: flash actionscript-3 actionscript flash-cs4 flash-cs5