112 posts
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Made it to the Authors' Hall of Fame
  • Has sold $1,000+ on Envato Market
+3 more
KurtBilisim says

Hello, I am using preview resources directly from various marketplaces and having security sandbox problems. I was hoping they wouldn’t occur when my preview is hosted on ActiveDen servers but it sometimes works, most of the time not.

I wanted to ask how do we solve this issue so I won’t waste time uploading various previews till it gets solved.

5398 posts The Dude Abides
  • Located in United States
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
+9 more
CodingJack says

Do you mean you’re loading things in from other sites and you’re encountering a sandbox problem? If so, this might help:

import flash.system.Security;
Security.allowDomain("*");

The star is a wildcard that means all will be allowed. But sometimes you have to take it a step further and load in the external site’s cross-domain policy like this:

var loader:Loader = new Loader();
loader.load(new URLRequest("asset.jpg"), new LoaderContext(true));

The second param with “true” passed into stands for “checkPolicyFile”.

Or you could preload the cross domain policy file like this:

Security.loadPolicyFile("http://www.youtube.com/crossdomain.xml");
112 posts
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Made it to the Authors' Hall of Fame
  • Has sold $1,000+ on Envato Market
+3 more
KurtBilisim says

Thanks. Security.allowDomain(”*”); was present somewhere and the reason it sometimes works and sometimes not confused me. I will try your codes now. My first time loading other’s previews into my files :)



Hmm, I am checking some crossdomain files and there seems to be no permission for activeden. Old flashden permissions remain instead.

http://1.s3.envato.com/crossdomain.xml

112 posts
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Made it to the Authors' Hall of Fame
  • Has sold $1,000+ on Envato Market
+3 more
KurtBilisim says

Thanks, it seems solved now. And also, I sent in a ticket regarding crossdomain activeden permissions, it should be updated soon.

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