Customize the Spark TextInput Component in Flex 4 (Gumbo). Adding focus and Transitions.
Keywords: component, customizing, effects, FXG, skinning, SkinState, Spark, Transition
Changing the look of a spark component mainly comes down to customizing the skin-class, but there are situations where this might not be enough.
In a project I’m working on, we wanted to have a smooth transition when a text-input gets or loses focus. The default Spark TextInput and the associated skin-class do not have a focused state. (In Flex the FocusManager manages the focus by drawing a border around a component, but we wanted the focus on the skin itself and a transition)
One way to achieve this is to enhance the TextInput Component: (more…)


