Style binding support for custom Flex components

By | June 9, 2009

I’ve been developing a lot of custom Flex components recently using Degrafa, and too many times got frustrated at the fact that Flex only supports inline binding for CSS style attributes. Besides that, the only way to listen to style changes is to override:

UIComponent.styleChanged(prop:String):void

I was finally happy to find out that Josh already shared a nice Proxy implementation that allows me to automatically bind style attributes to degrafa properties/styles. Makes my code more readable and maintainable. Thanks Josh!

Update: I posted a small example here and the source code can be download from there.

Leave a Reply

*

* Copy This Password *

* Type Or Paste Password Here *

51,950 Spam Comments Blocked so far by Spam Free Wordpress