Error #2044: 未处理的 IOErrorEvent:。 text=Error #2032: 流错误。 at _fla::MainTimeline⼀frame1()

在flash中表示什么意思。。。高手请帮帮忙!!!!!!
2025-05-14 12:29:13
推荐回答(1个)
回答(1):

在flash中提示这个错误是你的外载东西进来时找不到文件而报的错。

其实在载入时加多一个IOErrorEvent的倾听就行了
//Loader载入
import flash.event.IOErrorEvent;
Loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,IOErrorFun);
function IOErrorFun(){
}

//URLLoader载入
import flash.event.IOErrorEvent;
URLLoader.addEventListener(IOErrorEvent.IO_ERROR,IOErrorFun);
function IOErrorFun(){
}