[flexcoders] FW: Sandbox violation:Access denied

2009-01-30 Thread Sanket kumar Subhash Ghorpade
 

 

 

Hi,

I wrote an application that has an SWFLoader to load another swf

movie/application into the main application.
The server where my sub application is served from already has 
the 
crossdomain.xml, letting any domain to access data from it.
 However, I got the following error message:
 SecurityError: Error #2047: Security sandbox violation: parent: 
  http://submovie.swf http://submovie.swf  http://submovie.swf
http://submovie.swf  http://submovie.swf http://submovie.swf 
 http://submovie.swf http://submovie.swf   cannot access
 file:///C:/Documents file:///C:\Documents  file:///C:\Documents 
file:///C:\Documents
 and 
 Settings/IvanS/My Documents/Flex Builder 2/parentApp.swf.
at flash.display::DisplayObject/get parent()
at mx.managers::SystemManager/::executeCallbacks()
 at mx.managers::SystemManager/::docFrameHandler()
 
Does anyone have any idea how to handle this?
Thanks,
Sanket.

 


-**Nihilent***
 *** All information contained in this communication is confidential, 
proprietary, privileged
and is intended for the addressees only. If youhave received this E-mail in 
error please notify
mail administrator by telephone on +91-20-39846100 or E-mail the sender by 
replying to
this message, and then delete this E-mail and other copies of it from your 
computer system.
Any unauthorized dissemination,publication, transfer or use of the contents of 
this communication,
with or without modifications is punishable under the relevant law.

Nihilent has scanned this mail with current virus checking technologies. 
However, Nihilent makes no 
representations or warranties to the effect that this communication is 
virus-free.

Nihilent reserves the right to monitor all E-mail communications through its 
Corporate Network. *** 

*-


Re: [flexcoders] FW: Sandbox violation:Access denied

2009-01-30 Thread Jamie S
Try using Security.allowDomain() in the swf you are loading in.

Jamie

On Fri, Jan 30, 2009 at 7:15 AM, Sanket kumar Subhash Ghorpade
sanket.ghorp...@nihilent.com wrote:






 Hi,

 I wrote an application that has an SWFLoader to load another swf

 movie/application into the main application.

 The server where my sub application is served from already has

 the

 crossdomain.xml, letting any domain to access data from it.

  However, I got the following error message:

  SecurityError: Error #2047: Security sandbox violation: parent:

  http://submovie.swf http://submovie.swf  http://submovie.swf

 http://submovie.swf  http://submovie.swf http://submovie.swf

 http://submovie.swf http://submovie.swf   cannot access

  file:///C:/Documents file:///C:\Documents  file:///C:\Documents

 file:///C:\Documents

  and

  Settings/IvanS/My Documents/Flex Builder 2/parentApp.swf.

 at flash.display::DisplayObject/get parent()

 at mx.managers::SystemManager/::executeCallbacks()

  at mx.managers::SystemManager/::docFrameHandler()



 Does anyone have any idea how to handle this?

 Thanks,

 Sanket.



 -**Nihilent***
  *** All information contained in this communication is confidential,
 proprietary, privileged
 and is intended for the addressees only. If youhave received this E-mail in
 error please notify
 mail administrator by telephone on +91-20-39846100 or E-mail the sender by
 replying to
 this message, and then delete this E-mail and other copies of it from your
 computer system.
 Any unauthorized dissemination,publication, transfer or use of the contents
 of this communication,
 with or without modifications is punishable under the relevant law.

 Nihilent has scanned this mail with current virus checking technologies.
 However, Nihilent makes no
 representations or warranties to the effect that this communication is
 virus-free.

 Nihilent reserves the right to monitor all E-mail communications through its
 Corporate Network. *** 

 *-

 


RE: [flexcoders] FW: Sandbox violation:Access denied

2009-01-30 Thread Tracy Spratt
Also, in the error message, thaere is a mix of web server urls and file
system paths.  This pretty much will never work anywhere  other than
under Flex Builder.

 

If you are runniing your swf from a web server url, as almost everyone
does in production, you need to make your loaded swf accessible via web
server url as well. (*not* file:///...)

 

Unless you are installing your swf on the users machine in a trusted
sandbox, you must choose between filesystem and network access.  You can
not have both.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jamie S
Sent: Friday, January 30, 2009 8:00 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FW: Sandbox violation:Access denied

 

Try using Security.allowDomain() in the swf you are loading in.

Jamie

On Fri, Jan 30, 2009 at 7:15 AM, Sanket kumar Subhash Ghorpade
sanket.ghorp...@nihilent.com mailto:sanket.ghorpade%40nihilent.com 
wrote:






 Hi,

 I wrote an application that has an SWFLoader to load another swf

 movie/application into the main application.

 The server where my sub application is served from already has

 the

 crossdomain.xml, letting any domain to access data from it.

 However, I got the following error message:

 SecurityError: Error #2047: Security sandbox violation: parent:

  http://submovie.swf http://submovie.swf  http://submovie.swf
http://submovie.swf  http://submovie.swf http://submovie.swf 

 http://submovie.swf http://submovie.swf   http://submovie.swf
http://submovie.swf  http://submovie.swf http://submovie.swf 

 http://submovie.swf http://submovie.swf  http://submovie.swf
http://submovie.swfcannot access

 file:///C:/Documents file:///C:\Documents  file:///C:\Documents
file:///C:\Documents

 file:///C:\Documents

 and

 Settings/IvanS/My Documents/Flex Builder 2/parentApp.swf.

 at flash.display::DisplayObject/get parent()

 at mx.managers::SystemManager/::executeCallbacks()

 at mx.managers::SystemManager/::docFrameHandler()



 Does anyone have any idea how to handle this?

 Thanks,

 Sanket.



 -**Nihilent***
  *** All information contained in this communication is confidential,
 proprietary, privileged
 and is intended for the addressees only. If youhave received this
E-mail in
 error please notify
 mail administrator by telephone on +91-20-39846100 or E-mail the
sender by
 replying to
 this message, and then delete this E-mail and other copies of it from
your
 computer system.
 Any unauthorized dissemination,publication, transfer or use of the
contents
 of this communication,
 with or without modifications is punishable under the relevant law.

 Nihilent has scanned this mail with current virus checking
technologies.
 However, Nihilent makes no
 representations or warranties to the effect that this communication is
 virus-free.

 Nihilent reserves the right to monitor all E-mail communications
through its
 Corporate Network. *** 



*-