Flex: December 2007 Archives

Flex 3 Beta setStyle trouble

| | Comments (0) | TrackBacks (0)

I stumbled upon this gem in the Flex API about the intensity of the setStyle() method on processing. I only recently had the need to use it and was quite shocked at how slow this actually was. Granted I used it on a Datagrid which is probably not the best idea but I'm a bit of a if-it's there-then-use-it-kinda-guy.

Joan Lafferty blogged about the upcoming changes in Moxie for setting component and sub-component styles. Very insightful article. It immediately made me ask the question. How does this impact the setStyle() method. Presumably the "StyleProxy" should alleviate this problem as you have more control over what style is set to what component, regardless of the hieracrhy.

See the warning in the Flex api here ยป