Wednesday, March 25, 2009
Followup on Stateful Skinning
We got in touch with Adobe about our problems with stateful skinning. Their response was that all the enter frame handlers are necessary for, "tracking size changes, states, playing transitions, and the general overhead involved with implementing IUIComponent." They gave us a special version of the UIMovieClip class that removed logic for handling size changes since that's not necessary in skins. However, even with this change the state-based skins still took up far too much CPU for us to use them in production. In the end we moved to old stateless skins and now our application idles ~10% CPU usage, as is more typical for AIR applications. The take away message: state-based skins are really cool, but they probably aren't suitable for use in applications that are expected to be left open while the user does anything else on their computer. They probably aren't ever suitable for large applications, either.
Labels:
Flex,
Flex Component Kit,
skinning
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment