1 person found this helpful
CSS files are "compiled" into the SWF. They are not loaded at runtime like
they are in HTML.
If you change the css file and re-compile the SWF and changes are not having
any effect, you will have to find a way to figure out why. If you can
reduce it down to a small test case, post the test case.
If I re-compile the swf, changes are visible.
Is there any solution to have a css file near swf, change it and changes take effect without recompiile the swf?
Flex does not come with the capability to parse a CSS file at runtime and
I have an example on my blog in the Flex and HTML post that parses some
limited CSS at runtime and converts it, but it can only handle simple CSS.
There might be some 3rd party solutions as well.
Flex SDK Team
Adobe System, Inc.
F*CSS is a pretty solid CSS implementation for Actionscript. You will not be able to embed assest or make class references though.
Is your goal simply to load styles at runtime? Because you can do that by compiling the stylesheet (unless your targeting an iOS app). This would not require you to recompile the application SWF.