Added modified TextInput w/ clear button to jwo_lib
4 Comments so far
Leave a comment
Saturday, September 22, 2007, 12:17 am
Filed under: actionScript, components, development, flash, flex, jwo_lib
Filed under: actionScript, components, development, flash, flex, jwo_lib
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.
4 Comments so far
Leave a comment
Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Can you post a sample FLEX app showcasing the component?
Comment by vince Friday, September 28, 2007 @ 2:59 amI am currently in the process of doing all of the ASDOCs and getting sample applications set up for jwo_lib. Stay tuned
Comment by jwopitz Friday, September 28, 2007 @ 3:02 amHey Vince,
As requested a sample file has been uploaded. Check it out here:
sample – http://jwopitz-lib.googlecode.com/svn/trunk/examples/TextInputApplication.html
docs – http://jwopitz-lib.googlecode.com/svn/trunk/asdoc/index.html
Comment by jwopitz Tuesday, October 2, 2007 @ 2:35 pmGreat thanks…
Comment by vince Wednesday, October 3, 2007 @ 2:18 pm