846 posts
  • Has referred 50+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+8 more
marcfolio says

I’m loading a swf into my main file and I’ve come down to the conclusion that because this sub swf has content that’s created using graphics.drawRect I get the above security error.

Does anyone know how I can get past it?

556 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+4 more
ThemeScience says

I’m loading a swf into my main file and I’ve come down to the conclusion that because this sub swf has content that’s created using graphics.drawRect I get the above security error. Does anyone know how I can get past it?

Did you try importing the library into your Main SWF , and not just the child swf? I would try that .

1234 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 50+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 50+ items on Envato Market
+5 more
MBMedia says

If you have access to both swf’s security errors can be avoided. You need to use the Security.allowDomain method to allow each swf’s domain to access the scripts inside each other. Which swf needs to do the allowing depends on your setup, but if both allow each other then you’ve avoided most sandbox problems. Google Security.allowDomain and there’s a ton of resources on it.

56 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
flashdrone says

Are you using bitmapdata’s draw function on the sub swf?? If yes and the sub swf is from other domain then the sandbox violation error will occur:

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/BitmapData.html#draw()

8378 posts Community Moderator
  • Has referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Attended one of our Meetups around the world
+9 more
MSFX Moderator says

I think it may be the above, you can’t use bitmap.draw() on content from another domain…

1955 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
Emroni says

I think it may be the above, you can’t use bitmap.draw() on content from another domain…

+1 Take Youtube for example. I once tried to use the Youtube player with Papervision but couldnt, cause of the violation created by bitmapdatas draw()

31 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
dreamcorp says

Hello guys, your replies are very helpfull, was experiencing the same problem.

Please suggest how to use bitmap.draw() on content from another domain, from my RED5 server.

I want to make some effects on video streaming from RED5 server. What can be solution? Thanks

1633 posts fueledweb.com
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+7 more
RimmonTrieu says

Hello guys, your replies are very helpfull, was experiencing the same problem.

Please suggest how to use bitmap.draw() on content from another domain, from my RED5 server.

I want to make some effects on video streaming from RED5 server. What can be solution? Thanks

If it’s your own server a crossdomain.xml will usually does the trick. If you don’t have access to server that has the content there will be much more restrictions, try to setup a proxy script using php or related server side language to pull the content first.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by