explorers' club

explorations in dev, science, sci-fi, games, and other fun stuff!

Added modified TextInput w/ clear button to jwo_lib

4 Comments

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.

com.jwopitz.controls.TextInput – example | source

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.
Advertisements

4 thoughts on “Added modified TextInput w/ clear button to jwo_lib

  1. Can you post a sample FLEX app showcasing the component?

  2. I am currently in the process of doing all of the ASDOCs and getting sample applications set up for jwo_lib. Stay tuned šŸ™‚

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s