Skip to main content
March 18, 2010
Question

Error 2142 - security sandbox violation

  • March 18, 2010
  • 2 replies
  • 5176 views

Hi,

I have a problem when I try to compile my player, I get the following error:


SecurityError: Error #2142: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property. file:///C|/development/Flash/Pathe%20ads/New%20cmpt%20sample%20code/AS3ComponentDemoCode%5Fv2.1/DemoPlayer3Component.swf was attempting to load http://objects.tremormedia.com/embed/swf/acudeo.swf?rand=949275459.

What's odd is that:

1. I have used Security.allowDomain("http://objects.tremormedia.com/"); in the source code

2. This was working fine the day before last!

I have tried adding a crossdomain.xml file in the folder where I build the player, still no joy.

Can anyone help me with this? I tried throughout yesterday to fix it to no avail. I've even tried installing and building the player on a different machine to double check there wasn't something wrong on my PC.

Any help would be great - I'm tearing my hair out!

This topic has been closed for replies.

2 replies

April 8, 2010

Hi,

If you're still having issues, feel free to reach out to us directly. acudeosupport@tremormedia.com or me personally at abaisley@tremormedia.com

Thanks,

Andrew Baisley

Sr Solutions Engineer

Tremor Media

kglad
Community Expert
Community Expert
March 18, 2010

you can adjust your flash player security settings or add the cross-domain policy file AND set the checkforpolicy file parameter in your loadercontext.