Problem Definition: To be able to dynamically load a CSS at runtime to skin a Flex Application.
More Information: I've found that loading and applying a CSS is as simple as using "mx:style source="../assets/default.css"". But what I would like to do is something more like (pseudocode):
If (condition == 1)<br />
mx:style source="../assets/style1.css"<br />
ElseIf (condition == 2)<br />
mx:style source="../assets/style2.css"<br />
Else<br />
mx:style source="../assets/default.css"<br />
I've started to look into the StyleManager class but want to know if there's a simpler implementation.
Requirements: I'd like to have something as simple as dropping a .css file into the /assets folder without requiring CSS->SWF compilation or anything complex like that.