Using Ant to rebuild runtime css files

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...

This entry was posted in tips. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

One Comment

  1. Ronald
    Posted April 1, 2009 at 10:24 am | Permalink

    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

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*