TextField with more events support for AsWing text component use.
htmlText:String [write-only]
Sets the htmlText and fire InteractiveEvent.TEXT_CHANGED event.
Implementation
public function set htmlText(value:String):void
scrollH:int [write-only]Implementation
public function set scrollH(value:int):void
scrollV:int [write-only]Implementation
public function set scrollV(value:int):void
text:String [write-only]
Sets the text and fire InteractiveEvent.TEXT_CHANGED event.
Implementation
public function set text(value:String):void
public function AWTextField()
public override function appendText(newText:String):void
Appends new text and fire InteractiveEvent.TEXT_CHANGED event.
Parameters
protected function fireScrollChangeEvent(programmatic:Boolean = true):voidParameters
| programmatic:Boolean (default = true) |
protected function fireTextChangeEvent(programmatic:Boolean = true):voidParameters
| programmatic:Boolean (default = true) |
public override function replaceSelectedText(value:String):void
Replace selected text and fire InteractiveEvent.TEXT_CHANGED event.
Parameters
public override function replaceText(beginIndex:int, endIndex:int, newText:String):void
Replace text and fire InteractiveEvent.TEXT_CHANGED event.
Parameters
| beginIndex:int |
| |
| endIndex:int |
| |
| newText:String |
Event object type: org.aswing.event.InteractiveEvent
InteractiveEvent.type property = org.aswing.event.InteractiveEvent.SCROLL_CHANGED
Dispatched when the scroll changed, programmatic change or user change, for
example text scrolled by user use mouse wheel or by set the scrollH/scrollV
properties of TextField.
The InteractiveEvent.SCROLL_CHANGED constant defines the value of the
type property of the event object for a scrollChanged event.
The properties of the event object have the following values:
| Property | Value |
bubbles | false |
cancelable | false |
isProgrammatic() | True means this event is fired by
the programmatic reason, false means user mouse/keyboard interaction reason. |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
comp.addEventListener() to register an event listener,
comp is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
Event object type: org.aswing.event.InteractiveEvent
InteractiveEvent.type property = org.aswing.event.InteractiveEvent.TEXT_CHANGED
Dispatched when the text changed, programmatic change or user change.
The InteractiveEvent.TEXT_CHANGED constant defines the value of the
type property of the event object for a textChanged event.
The properties of the event object have the following values:
| Property | Value |
bubbles | false |
cancelable | false |
isProgrammatic() | True means this event is fired by
the programmatic reason, false means user mouse/keyboard interaction reason. |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
comp.addEventListener() to register an event listener,
comp is the value of the currentTarget. |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |