Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Crossdomain.xml

Guest
Feb 06, 2012 Feb 06, 2012

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?

TOPICS
ActionScript
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 06, 2012 Feb 06, 2012

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 06, 2012 Feb 06, 2012

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 06, 2012 Feb 06, 2012
LATEST

remove your cross-doman code and upload your html/swf and any needed assets to your server and test.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines