12-06-2010 06:35 PM
Has anyone fully implemented the left icon in the TextInput control? I am able to set a raw icon and a UIComponent and the control adjusts to it for the most part (seems to be an issue when the left icon is set and you have prompt defined). However, when I add an addEventListener( MouseEvent.CLICK, MyCallback) to the added DisplayObject, the event does not get triggered when the item is selected.
Solved! Go to Solution.
12-06-2010 06:51 PM
in regards to the lack of event dispatching from the UIComponent, from the looks of the ASDocs the UIComponent class doesnt implement any sort of the EventDispatcher classes (flash.events.IEventDispatcher). A class needs to itself implement or have a class that it extends or implements, implement the EventDispatcher class in order to be able to dispatch events such as MouseEvent.CLICK.
ill look into the icon text input though and see what i can come up with. hope that helps somewhat!
12-06-2010 07:06 PM
12-06-2010 07:14 PM - edited 12-06-2010 07:14 PM
A QNX Button worked fine. Seems a little small to get a finger on it. It gets automatically sized by the control's
getLeftIconRect. This should be able to be defined by the developer. They leave a good 10px on top and bottom that would make it easier to touch with a finger.
12-07-2010 03:11 AM
I have made small tuto about TextInput icons, you may want to see it here: