Well, I'm using Flex 3 and the sandbox error pops up when I run it from Flex.


--- In [email protected], Adnan Doric <astrona...@...> wrote:
>
> http://localhost is considered as a domain.
> 
> If you want it to work, launch it directly from your Flash Builder. It 
> will create a rule for the folder containing the swf in order to bypass 
> the security.
> 
> 
> 
> On 10/02/2010 22:54, s_hernandez01 wrote:
> >
> > Yeah I thought of that too, but no success :( The Flex Project is 
> > setup with a PHP application server type. It's like if Flash Player is 
> > saying "hey this domain does not have access to get these images" but 
> > the thing is I'm not calling them from domain to domain, I'm calling 
> > them locally to a domain. It's really frustrating. Any other solutions?
> >
> > --- In [email protected] 
> > <mailto:flexcoders%40yahoogroups.com>, Jake Churchill <reynacho@> 
> > wrote:
> > >
> > > try manually loading the policy file:
> > >
> > > import flash.system.Security;
> > > ...
> > > Security.loadPolicyFile("http://domainname.com/crossdomain.xml 
> > <http://domainname.com/crossdomain.xml>");
> > >
> > > On Wed, Feb 10, 2010 at 3:06 PM, s_hernandez01 <s_hernandez01@>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 [email protected] 
> > <mailto:flexcoders%40yahoogroups.com> <flexcoders%40yahoogroups.com>, Jake
> > > > Churchill <reynacho@> 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_hernandez01@>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 
> > <http://localhost/beta/Test-debug/Test.swf> cannot access
> > > > > > 
> > http://MyDomainName.com/beta/images-standard/backgrounds/paper.png. 
> > <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
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> >
>


Reply via email to