Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SWF SecurityError: Error #2000: No active security context

Tags:

security

flash

Hi I 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?

like image 276
shannoga Avatar asked May 10 '26 05:05

shannoga


2 Answers

I've run into this problem when working with loading images where the path is located in an external XML file. So... I load the XML get the path from it but then the problem I had was I was loading 30+ images and the error was popping up only 6 times so.. I had no idea which file locations where the bad ones.

If you want flash to out put more info than just :

SecurityError: Error #2000: No active security context.

Add this event listener to your Loader:

loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);

and finally this function:

protected function ioErrorHandler(e:IOErrorEvent):void{
    trace(e.text);
}

With this in place your Security Error will convert to a URL Not Found Error with the file location you supplied. With this information in hand it should be easier for you to debug the problem.

Error #2035: URL Not Found. URL: file:////Volumes/Macintosh%20HD/Users/cleanshooter/Documents/Website%20/here/there/everywhere/30805/filename.jpg
like image 188
Cleanshooter Avatar answered May 12 '26 00:05

Cleanshooter


I faced this issue before,the final conclusion was related to incorrect image path or name

like image 22
Feras Avatar answered May 11 '26 23:05

Feras



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!