1 Reply Latest reply on Aug 20, 2010 8:05 AM by Gurdeep Singh

    Web based RIA with no outward connection to the Internet


      Hi All.


      I'm just having an experiment at the moment, trying to get a development environment running on a Windows 7 64 bit box. It's actually going quite well - only a few hiccups along the way with mxmlc not liking JAVA_HOME to point at the JDK (which is fine under XP), but it does like it pointing at the JRE within the JDK.


      Once everything was up and running, I tried to test my application. It kind-of works, but is unable to load the themes. The themes are compiled from a CSS file using MXMLC, and result in a file called Theme.swf. This is loaded using the application styleManager.loadStyleDeclarations method.


      On my desktop machine, connected to the internet, this all works fine.


      On this test machine, which is not connected to the 'net, because it's a corporate build, the styles don't load. In the console, I see...


      [SWF] /ILM/index.swf - 6,575,011 bytes after decompression

      [SWF] /ILM/styles/Theme.swf - 165,925 bytes after decompression

      Error: Failed to load policy file from http://fpdownload.adobe.com/pub/swz/crossdomain.xml

      Warning: Failed to load policy file from http://fpdownload.adobe.com/crossdomain.xml

      *** Security Sandbox Violation ***

      Connection to http://fpdownload.adobe.com/pub/swz/tlf/ halted - not permitted from http://localhost:8080/ILM/styles/Theme.swf

      Error #2048: Security sandbox violation: http://localhost:8080/ILM/styles/Theme.swf cannot load data from http://fpdownload.adobe.com/pub/swz/tlf/

      Failed to load RSL http://fpdownload.adobe.com/pub/swz/tlf/

      Failing over to RSL textLayout_1.0.0.595.swz

      Error: Request for resource at http://fpdownload.adobe.com/pub/swz/tlf/ by requestor from http://localhost:8080/ILM/styles/Theme.swf is denied due to lack of policy file permissions.

      Is it possible to either compile these swz files into the theme, or host them locally.
      Similarly, how do I put our own crossdomain file in so that it will be picked up by the app?
      The end app will be run within secure corporate environments, which we can't guarantee will have access to the 'net.
      Thanks in advance,