0 Replies Latest reply on Sep 6, 2007 11:32 AM by M4000

    Help ActionScript variables on other domain

      I hope somebody can help me out. I have been thumping my head on this one for awhile. I have javascript calling within actionscript and it seems to work on every domain on my server but does not work on any other domains. The code is this:

      varsObject.theurl = flash.external.ExternalInterface.call( 'function() { return window.location.toString(); }' );

      ( works in FireFox only mind you )

      I figured it must be somehow a cross domain policy issue. So in my fla file at the top i put

      System.security.loadPolicyFile(" http://www.mydomain.com/crossdomain.xml");

      And in the file I put this

      <?xml version="1.0"?>
      <!-- http://www.mydomain.com/crossdomain.xml -->
      <allow-access-from domain="*" />

      I am hoping one of you sharp people can point me to what i am doing wrong!