3 Replies Latest reply on Jul 13, 2010 10:00 AM by Flex harUI

    StyleManager.loadStyleDeclarations doesn't work in AIR??

    Pepe.FxUG Level 1

      I'm trying to load runtime-css in Adobe AIR.

      However, it always said "SWF is not a loadable module".

       

      I have two questions.

       

      Question 1.

      Does not StyleManager.loadStyleDeclarations work with native-path?

       

      I tried to load the swf from server. Of course I put crossdomain.xml like bellow.

       

      <?xml version="1.0"?>

      <!DOCTYPE cross-domain-policy SYSTEM

      "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">

       

      <cross-domain-policy>

        <site-control permitted-cross-domain-policies="master-only"/>

        <allow-access-from domain="*"/>

        <allow-http-request-headers-from domain="*" headers="SOAPAction"/>

      </cross-domain-policy>

      However, it never work. It just said "SWF is not a loadable module" again.
      Question 2.
      StyleManager.loadStyleDeclarations never work in Adobe AIR ?
      thanks
      Shigeru Nakagaki