may help you . In terms of performances, it would be better that your skin inherits from ProgrammaticSkin instead of UIComponent. ProgrammticSkin itself inherits from Shape and provides utility methods for skinning such as verticalGradientMatrix, drawRoundRect, ... That's all I can say looking at your code.
Flex mobile skin overriding hostComponent of parent skin?
Hope that helps ?Problem is pretty simple, I extend Button to create ImageButton, and I extend ButtonSkin to create ImageButtonSkin. But, when I define hostComponent like this: , How do I extend a skin AND provide a new hostComponent for it?
var myImageButton : ImageButton = hostComponent as ImageButton;