try manually loading the policy file: import flash.system.Security; ... Security.loadPolicyFile(“http://domainname.com/crossdomain.xml“);
On Wed, Feb 10, 2010 at 3:06 PM, s_hernandez01 <s_hernande...@yahoo.com>wrote: > > > I guess my question would be why would it give me a security sandbox error > when I'm running the app locally, wouldn't the sandbox error be executed > when you have your app on a webserver with no crossdomain.xml on the server > you're trying to access? > > > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, Jake > Churchill <reyna...@...> wrote: > > > > Looks like you are trying to access MyDomainName.com but your policy is > set > > for www.MyDomainName.com. Those are treated as separate domains even > though > > they are only sub domains. > > > > On Wed, Feb 10, 2010 at 2:35 PM, s_hernandez01 <s_hernande...@...>wrote: > > > > > > > > > > > > Hey does anyone know why I get this error: > > > > > > SecurityError: Error #2122: Security sandbox violation: > BitmapData.draw: > > > http://localhost/beta/Test-debug/Test.swf cannot access > > > http://MyDomainName.com/beta/images-standard/backgrounds/paper.png. A > > > policy file is required, but the checkPolicyFile flag was not set when > this > > > media was loaded. > > > at flash.display::BitmapData/draw() > > > > > > I have the xml file "crossdomain.xml" on the root of my webserver: > > > > > > <?xml version="1.0"?> > > > <cross-domain-policy> > > > <allow-access-from domain="www.MyDomainName.com"/> > > > </cross-domain-policy> > > > > > > but when I run the app locally I always get this error. All I'm doing > is > > > trying to retreive images from my database. What more do I need to do? > > > > > > Thanks > > > > > > Sal > > > > > > > > > > > > > >