So I was playing around with Flash the other day trying to make skins for buttons. I haven’t done any real flash work in probably over a year now. But I decided I would try to make a useful component modification to the mx:TextInput. It doesn’t have a built in clear button for users to interact with. Now it does. Check it out at jwo_lib.
It has also been added to the jwo_lib.swc for easy implementation.
The clear button was modeled after the Firefox multi-tab close button. Check it out here:
A few things to note:
- Currently you cannot style the clear button skins. Its hard coded right now though I will soon add the styling mechanisms for it.
- There is only one new public var called showClearButton:Boolean.
- Its nothing fancy, it doesn’t disable the button when no text is in the field. Maybe in a future version. But it works and has been tested for basic use.