Friday, March 27, 2009

Can I load CSS style sheets dynamically at runtime

Question :Can I load CSS style sheets dynamically at runtime?
Answer :Dynamic loading of CSS files is not supported in Flex. CSS in Flex is processed on the server side
during MXML compilation rather than on the client side at runtime. There is a trick though: A CSS
file can be compiled into a separate SWF file and loaded dynamically into the application using the
Loader component.

No comments: