You cannot load an uncompiled CSS file into your Flex application at run time. You must compile it into a SWF file before loading it.
Loading style sheets at runtime (Macromedia Flex LiveDocs)
You can’t load pure CSS files with actionscript3.0 during runtime unless the stylesheet is compiled into an SWF, what’s up with that? I can remember that back in the day, with my old mate actionscript2.0 we’d have lots of fun loading real stylesheets during runtime, those were the days!
This is an outrage!
Thanks for the heads up Ruben, I’m sure you’re putting something together that we all can use, right?
Michael
[...] No runtime CSS what? [...]
[...] CSSLoader is an Actionscript3.0 class that allows you to load CSS-files during runtime, which was previously not supported in AS3. Go check it [...]
[...] gedaan aan projecten voor TFE zelf. Maar destemeer qua zelf-studie en mijn CSSLoader class (om het externe css probleem op te lossen), die nu klaar is, ik zit nu alleen nog even te wachten op feedback, waarna ik de [...]
CSSLoader is great~
styleObj no such as “backgroundImage: Embed(” or “swf” ,some time the flex skin maybe need like “flex_skins.swf” …