本文介绍了SWF SecurityError:错误#2000:没有活动的安全上下文的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi
我有一个flash图片库,工作得很好,直到几天后,它停止加载图像。调试器会抛出这个错误:

$ $ $ $ $ $ $ $ Security $ Error:Error#2000:No active security context。

有人可以解释一下原因吗?

解决方案

您的图片扩展名可能是从.jpg到.JPG或其他类似的吗?



您的外部媒体存在问题。这是一个解决方法,但我通常尝试解决,而不是让它消失。

  setTimeout(function():void {fileReference.load();},1); 

希望这有助于您。


HiI have a flash image gallery that worked just fine, until few days a go it stopped loading the images. the debugger throws this error :

SecurityError: Error #2000: No active security context.

can someone explain what can be the cause?

解决方案

Did your images extensions change, possibly from like .jpg to .JPG or something?

Typically this is called if there is a problem with your external media. Here's a workaround for it, but I typically try and solve versus make it go away.

setTimeout( function():void{fileReference.load();}, 1);

Hope this helps.

这篇关于SWF SecurityError:错误#2000:没有活动的安全上下文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 22:20