Hello, I'm trying to implement runtime css in my flex application. I have compiled my css file into a swf with mxmlc > mxmlc style1.css
Then I load the resulting style1.swf on Application creationComplete: <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="StyleManager.loadStyleDeclarations('../assets/style1.swf', true, true)"> But when I debug this in Flex Builder 3, I get an error (see below) saying that my style1.swf is not a loadable module. I looked around online and in this forum and it seems that this message is security-based, which is puzzling to me because all files are local in my example. I am not loading a style file from another domain. My directory structure (on OS X Leopard) is: testRuntimeCss\ assets\ style1.css style1.swf src\ testRuntimeCss.mxml I have tried this with the "Compile CSS to SWF" option both checked and unchecked (right click on style1.css). What gives? [SWF] Users:jbattat:Documents:Flex Builder 3:testRuntimeCss:bin- debug:testRuntimeCss.swf - 582,620 bytes after decompression [SWF] Users:jbattat:Documents:Flex Builder 3:testRuntimeCss:assets:style1.swf - 11,294 bytes after decompression Error: Unable to load style(SWF is not a loadable module): ../assets/style1.swf. at <anonymous>()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\styles\StyleManag erImpl.as:858] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at ModuleInfoProxy/moduleEventHandler()[E:\dev\3.0.x\frameworks\projects\framework\src \mx\modules\ModuleManager.as:1027] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at ModuleInfo/initHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\modules\ ModuleManager.as:631]

