I'm trying to load runtime-css in Adobe AIR.
However, it always said "SWF is not a loadable module".
I have two questions.
Does not StyleManager.loadStyleDeclarations work with native-path?
I tried to load the swf from server. Of course I put crossdomain.xml like bellow.
<!DOCTYPE cross-domain-policy SYSTEM
<allow-http-request-headers-from domain="*" headers="SOAPAction"/>
You need to load the style swf from the user's machine as it treats the style swf the same as a regular module, and so you run into the same security rules as loading modules... and as far as I know, the StyleManager doesn't have the loadBytes method the same way as the modules do.
StyleManager.loadStyleDeclarations method throws the error of "SWF is not a loadable module".
# Actually StyleManager.loadStyleDeclarations method uses the Module architecture.
The only trusted location is the application directory. Everything else is
untrusted and the module gets loaded into a separate sandbox and can't be
used as a module.
You might be able to use loadBytes to get around the issue.