First you have to identify which code is causing the violation.  Post the 
entire violation.  It should contain more information about which component is 
doing the violation.  Once you figure that out, then you can try to workaround 
it, but testing from the server instead of the local filesystem is recommended 
as someday you will deploy the app to a server and you'll have different 
security rules in such a configuration.

A workaround if a SWFLoader has trustContent=true
                <SWFLoader id="ldr" trustContent="true" />

Is
                <SWFLOader id="ldr" preinitialize="if 
(Security.sandboxType=='remote') ldr.trustContent=true else 
ldr.trustContent=false" />

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ward 
Loockx
Sent: Tuesday, November 18, 2008 12:06 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Security sandbox violation: local SWF files 
cannot use the LoaderContext.securityDomain property


Alex Harui schreef:
>
> Some code somewhere is trying to set a SecurityDomain parameter in a
> LoaderContext. There are parameters like trustContent on SWFLoader
> that can trigger that code. Unfortunately you can only run such code
> when deployed to HTTP:// and not from FILE:://. You might need to put
> in some conditional code to deal with it
>
>
>
> *From:* flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com> 
> [mailto:flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>]
> *On Behalf Of *Ward Loockx
> *Sent:* Monday, November 17, 2008 9:07 AM
> *To:* flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>
> *Subject:* Re: [flexcoders] Re: Security sandbox violation: local SWF
> files cannot use the LoaderContext.securityDomain property
>
>
>
> valdhor schreef:
> >
> > Try adding your bin-debug directory to your Global Security Settings
> > Manager
> >
> (http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
> <http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html>
>
> >
> <http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
> <http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html>>)
> >
> > --- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com> 
> > <mailto:flexcoders%40yahoogroups.com>
> > <mailto:flexcoders%40yahoogroups.com>, Ward Loockx <[EMAIL PROTECTED]> 
> > wrote:
> > >
> > > Hello,
> > >
> > > When I'm trying to load images from a remote server I get the
> following
> > > error message..
> > >
> > > *Security sandbox violation: local SWF files cannot use the
> > > LoaderContext.securityDomain property*
> > >
> > > I've been googling and nothing that works for me. When I put the
> swf on
> > > the remote server it loads the images perfect! I've tried everything
> > > (Crossdomain,addSecuritydomain on application, ...).
> > > Someone that managed to solve this ? Looks like a lot of people have
> > > this problem...
> > >
> > > Thanks!
> > > Ward
> > >
> >
> >
> I added the SWF, but that didn't worked out :(
>
>
Hello,

Thanks for the reply. If I get it right, there is a workaround but
requires additional code? Can you specify a bit please ?

Thanks,
Ward

Reply via email to