Skip to main content
February 28, 2013
Answered

SecurityError: Error #2123: Security sandbox violation: BitmapData.draw:

  • February 28, 2013
  • 1 reply
  • 1345 views

Hi,

I am developing an swf in Flash Builder 4.7 to run in the FlashPlayer_sa.exe (11.5). Inside this application I load another swf from the same folder and inside this one I load a video from a subfolder.

To have an paging effect for my content I use a bitmap copy from the original content. When I have my videos attatched I can make my bitmap copy (copypixels) from the content clip and the video inside it. Now the 'funny' thing is when I set the stream of the video to null I get this sandboy violation error:

SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: file:///P:/_projekte/....

I also add my project folder to trusted locations in global flah settings. It seems that the securety check has a problem with a stream of the value null and acts like this is from a different domain. Any way to workaround this?

This topic has been closed for replies.
Correct answer kglad

flash is probably looking for a null file.

what's that full error message.

1 reply

kglad
Community Expert
Community Expert
February 28, 2013

if the draw method is applied to something loaded from another domain, that security issue is expected.  to remedy, use a cross-domain permissions file.

if that loaded object is from the same domain, use a relative (not absolute) path in your urlrequest.

February 28, 2013

The problem is that the video stream is set to null. So there is no domain and no place to put a permission file.

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
February 28, 2013

flash is probably looking for a null file.

what's that full error message.