SWF文件加载错误#2036只有几次

时间:2014-10-16 08:40:32

标签: actionscript-3 flash

我使用了以下代码:

var loader:Loader = new Loader;
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityError);
var swfUrl:String = "content/1-1-1.swf";
loader.load(new URLRequest(swfUrl));
this.addChild(loader);
function onLoadComplete(e:Event){
    trace("swf loaded successfully");
}
function securityError(e:SecurityErrorEvent){
    trace(swfUrl + " security issue." + e.text);
}
function ioError(e:IOErrorEvent){
    var errorMsg:String = swfUrl + " not found." + e.text;
    trace(errorMsg);
    ExternalInterface.call("ErrorTracker", errorMsg);
    // ErrorTracker sendimg for tracking that function I writeen in html page
    // This error getting very few times not for all times.
    // Getting mails with this message as: content/1-1-1.swf not found.Error #2036
}

所有时间都运行正常。只有极少数时间,我收到错误#2036。主要是这个错误来自Window7或Windows8。

如果有人知道adobe flash player在同一服务器上有文件可用的情况下有时无法加载SWF文件,那将是非常有帮助的。

谢谢, 乌代

0 个答案:

没有答案