When building applications or tools that need to be skinnable at runtime, using Ant to rebuild your runtime CSS files is a huge timesaver.
Find out everything about runtime css here: http://livedocs.adobe.com/flex/3/html/help.html?content=styles_10.html
Check out this example containing an Ant script to rebuild your runtime CSS files.
Find out everything about using the available Flex Ant tasks here:
http://livedocs.adobe.com/flex/3/html/help.html?content=anttasks_3.html
Naturally, you need to install Ant in Flex Builder 3 first.
As a sidenote, when building skinnable apps, a CSS might not be sufficient to create highly graphical skins, for example when you want to make a completely skinnable mediaplayer in Flex (having skinning options comparable to the Winamp player for instance). This can be achieved by loading a (transparent) SWF on top of your application and have your player communicate with the "dynamically loaded view" via a common Interface for user control and visualization. This works well, but if anyone knows of a better way to build a skinnable mediaplayer, please let me know...


One Comment
thanks buddy , i never knew anything like ants exist for flex . I m also trying to implement runtime dynamic stylesheet change . i found this article to be quite meaning full
http://askmeflash.com/article_m.php?p=article&id=6