Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Contributor ,
Feb 28, 2013 Feb 28, 2013

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?

TOPICS
ActionScript
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 28, 2013 Feb 28, 2013

flash is probably looking for a null file.

what's that full error message.

Translate
Community Expert ,
Feb 28, 2013 Feb 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 28, 2013 Feb 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 28, 2013 Feb 28, 2013

flash is probably looking for a null file.

what's that full error message.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 28, 2013 Feb 28, 2013
LATEST

Yes I guess flash is looking for a permission file of the null stream, does not find it and marking it as permission error. There wasn't much more error text but some code references.

Now I just set my old stream to stop/pause as a workaround.

Edit:

When I use video steams in flash I keep the video added to the destination movieclip to avoid memory loss that occured  using new network connections. So that is why flash is looking for a permission of an empty video stream.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines