A few days back Mike Chambers posted an interesting code sample (made by Christian Cantrell) for Flex 2 to the FlashCoders mailinglist that shows a cool way to skin components in MXML. Notice that it uses CSS and the Embed directive for using images as skins (which compiles the external image into the SWF). This feature alone will save hours when customizing the look and feel of applications compared to the way you do it in AS 2.0 or the Flash IDE, as many Flash developers will know from experience.



  
    

.windows { upSkin: Embed(source="button_up.png"); overSkin: Embed(source="button_over.png"); downSkin: Embed(source="button_down.png"); } ]]

Posted
AuthorPeter
CategoriesFlex