Nahuel Foronda just posted a cool example of a button skin that uses states in order to create a color animation on mouse over. The skin is written almost entirely in pure MXML, with a little bit of AS just to attach the filters to the button label. This really shows the power of using declarative states to implement a skin instead of having to write a bunch of procedural code, and as Nahuel points out, when we add graphics tags to the framework it will become even more powerful.

One modification that might be interesting would be to see if he could use an MXML transition to create the color animation instead of using Darron Schall’s AnimateColor component. I bet that would work, but haven’t tried it myself yet.

Digg!digg this | | 4 Comments