Copy link to clipboard
Copied
First let me say that I dont think I know what I am doing. I have a swf. When I try and run the swf I get the pop-up that says "Adobe has stopped a potentially unsafe operation". I searched around found that I may need to use the "Security.allowDomain("*")" and make a crossdomain.xml file. Did that and placed and used Security.loadPolicyFile("http://192.168.1.103:8080/sample/crossdomain.xml") When i place "http://192.168.1.103:8080/sample/crossdomain.xml" in the browser I can browse to the xml file fine. But when compiling the swf I get "Error opening URL 'http://192.168.1.103:8080/crossdomain.xml" Is there something I'm doing wrong?
Copy link to clipboard
Copied
are you testing a swf that's destined for the internet? if yes, just adjust your own settings: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
Copy link to clipboard
Copied
Yes, it is destined for the internet. Thanks, but I tried this and it did not help. I had already set the global options to allow any domain. And placed an exception for my own. Still no go. Just to be sure, when I am compiling the swf I get the 'Error opening URL 'http://192.168.1.103:8080/crossdomain.xml' Im under the assumption that I must use "Security.loadPolicyFile("http://192.168.1.103:8080/sample/crossdomain.xml")" when ever I make a request to the server. But when I try and compile the swf and run it in the flash environment I get the "error opening" problem. When I click on the swf outside of the environment i get the error
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///C|/Users/theMovie.swf cannot load data from http://192.168.1.103:8080/server
Copy link to clipboard
Copied
remove your cross-doman code and upload your html/swf and any needed assets to your server and test.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now