[Flashcoders] Security Sandbox Violation question
Hi list... I'm building an AIR app that brings in a swf from the user's hard drive. The swf is simply a linear animation with a button to replay the animation on its last frame. The swf plays fine, but when I click the replay button, I get: ** Security Sandbox Violation *** SecurityDomain 'file:///C:/ProgramData/myPath/animation.swf' tried to access incompatible context 'app:/air.swf' I am reluctant to set Security.allowDomain("*"); I tried it and it didn't work anyway. Code on the button: StartOverButton.addEventListener(flash.events.MouseEvent.CLICK, function(m:MouseEvent){gotoAndPlay(1);}); stop(); Any suggestions? Thanks, - Michael M. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Security Sandbox Violation: Tried to accessincompatible context
No suggestion, just some additional feedback from my debug window... -- using receiverConnName:RN2MP NOT ROUTE using receiverConnName:MP2RN Error: Request for resource at http://www.mappingmainstreet.org/mmsquery.php?route=recent by requestor from http://mappingmainstreet.org/development/0819/roadmap.swf is denied due to lack of policy file permissions. *** Security Sandbox Violation *** SecurityError using receiverConnName:RN2MP NOT ROUTE using receiverConnName:MP2RN *** Security Sandbox Violation *** --- -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Jesse Shapins Sent: Friday, 21 August 2009 7:38 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Security Sandbox Violation: Tried to accessincompatible context Hi all, I've been banging my head against the wall for days trying to solve an issue. You can see it at this URL using Firefox: http://mappingmainstreet.org/development/0819/index05_jms.html The proper user experience is to be able to do the following: - Click on any of the Features buttons (e.g. Chattanooga, TN) and then load the Media Player (displaying photographs from Ronceverte, WV) and also load the Route Navigator (displaying visualization of Current Route: Building). In this state, the Paths tab should be highlighted (darker than the Map and Features tab) - From this state, the user should be able to: 1) Switch to the Map tab and view a map visualization (the Media Player does not change with this action). 2) Search for any city name. If the city searched has photos (e.g. San Francisco CA) then the the Media Player will display photos from that place while a Google Map loads with that location. If the city does not have photos, it will display a Street View or aerial photograph in the middle player field. 3) Search for a state (e.g. Caliifornia). This will load photos from the state in the Media Player and display the Paths navigation for that state. HOWEVER...Once you have loaded the Media Player and Route Navigator, it is not possible to switch to the Map Tab or Search. I receive this error in my Flash Tracer: *** Security Sandbox Violation *** SecurityDomain ' http://mappingmainstreet.org/development/0819/index05_jms.html' tried to access incompatible context I believe this indicates an error in the interaction between the Flash and the JavaScript. If anyone has any suggestions, I would greatly appreciate it. Thank you very much, Jesse ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Security Sandbox Violation: Tried to access incompatible context
Hi all, I've been banging my head against the wall for days trying to solve an issue. You can see it at this URL using Firefox: http://mappingmainstreet.org/development/0819/index05_jms.html The proper user experience is to be able to do the following: - Click on any of the Features buttons (e.g. Chattanooga, TN) and then load the Media Player (displaying photographs from Ronceverte, WV) and also load the Route Navigator (displaying visualization of Current Route: Building). In this state, the Paths tab should be highlighted (darker than the Map and Features tab) - From this state, the user should be able to: 1) Switch to the Map tab and view a map visualization (the Media Player does not change with this action). 2) Search for any city name. If the city searched has photos (e.g. San Francisco CA) then the the Media Player will display photos from that place while a Google Map loads with that location. If the city does not have photos, it will display a Street View or aerial photograph in the middle player field. 3) Search for a state (e.g. Caliifornia). This will load photos from the state in the Media Player and display the Paths navigation for that state. HOWEVER...Once you have loaded the Media Player and Route Navigator, it is not possible to switch to the Map Tab or Search. I receive this error in my Flash Tracer: *** Security Sandbox Violation *** SecurityDomain ' http://mappingmainstreet.org/development/0819/index05_jms.html' tried to access incompatible context I believe this indicates an error in the interaction between the Flash and the JavaScript. If anyone has any suggestions, I would greatly appreciate it. Thank you very much, Jesse ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Security Sandbox Violation
Can anyone help me with a Security Sandbox Violation that I can't seem to figure out? I'm testing using Flash Player 8 Debug version (IE7 ActiveX and Firefox 2.0.0.6 plugin). I'm trying to load a remote swf (http://xyz.a.server2.net/datadir/data.swf) from a web-hosted swf (http://www.server1.com/test/app.swf). Here's where I'm at: - I added System.security.allowDomain("xyz.a.server2.net") to app.swf. - I added System.security.allowDomain("www.server1.com") to data.swf. - I created a cross-domain policy file (crossdomain_1.xml) and uploaded it to http://www.server1.com (root dir) with this entry: - I created a cross-domain policy file (crossdomain_2.xml) and uploaded it to http://xyz.a.server2.net/datadir (I don't have access to the root of this server) with this entry: - I added System.security.loadPolicyFile("http://xyz.a.server2.net/datadir/crossdomain _2.xml") to app.swf. - I added System.security.loadPolicyFile("http://www.server1.com/crossdomain_1.xml";) to data.swf. - Then, in app.swf, I attempt to load data.swf using loadMovie("http://xyz.a.server2.net/datadir/data.swf";, target_mc) - I publish app.swf for Player 8, AS2, and upload it to http://www.server1.com/test. - I publish data.swf for Player 8, AS2, and upload it to http://xyz.a.server2.net/datadir. Here's what I get in flashlog.txt when I test it using IE7: *** Security Sandbox Violation *** SecurityDomain 'http://www.server1.com/test/' tried to access incompatible context 'http://xyz.a.server2.net/datadir/crossdomain_2.xml' Here's what I get when using Firefox: *** Security Sandbox Violation *** SecurityDomain 'http://www.server1.com/test/app.swf' tried to access incompatible context 'http://xyz.a.server2.net/datadir/crossdomain_2.xml' FWIW, in my testing, I found that if I publish data.swf for Player 5, the error goes away in IE 7, but not in Firefox. What am I missing? I would think this should be pretty simple, as my code is pretty basic (ie, data.swf doesn't do anything right now, other than System.security.allowDomain and System.security.loadPolicyFile). Thanks, Shane ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] *** Security Sandbox Violation ***
Hi list... I keep getting this error while debugging. I'm not clear what's causing it. Any thoughts? - MM *** Security Sandbox Violation *** SecurityDomain 'file:///D|/customized%20proposal/ingredients/customProposalFlashAssets/ customProposalTool.swf' tried to access Player UI context ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com