Packageorg.aswing
Classpublic class AWTextField
InheritanceAWTextField Inheritance flash.text.TextField

TextField with more events support for AsWing text component use.



Public Properties
 PropertyDefined by
  htmlText : String
[write-only] Sets the htmlText and fire InteractiveEvent.TEXT_CHANGED event.
AWTextField
  scrollH : int
[write-only]
AWTextField
  scrollV : int
[write-only]
AWTextField
  text : String
[write-only] Sets the text and fire InteractiveEvent.TEXT_CHANGED event.
AWTextField
Public Methods
 MethodDefined by
  
AWTextField
  
appendText(newText:String):void
Appends new text and fire InteractiveEvent.TEXT_CHANGED event.
AWTextField
  
replaceSelectedText(value:String):void
Replace selected text and fire InteractiveEvent.TEXT_CHANGED event.
AWTextField
  
replaceText(beginIndex:int, endIndex:int, newText:String):void
Replace text and fire InteractiveEvent.TEXT_CHANGED event.
AWTextField
Protected Methods
 MethodDefined by
  
fireScrollChangeEvent(programmatic:Boolean = true):void
AWTextField
  
fireTextChangeEvent(programmatic:Boolean = true):void
AWTextField
Events
 EventSummaryDefined by
   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.AWTextField
   Dispatched when the text changed, programmatic change or user change.AWTextField
Property detail
htmlTextproperty
htmlText:String  [write-only]

Sets the htmlText and fire InteractiveEvent.TEXT_CHANGED event.

Implementation
    public function set htmlText(value:String):void
scrollHproperty 
scrollH:int  [write-only]Implementation
    public function set scrollH(value:int):void
scrollVproperty 
scrollV:int  [write-only]Implementation
    public function set scrollV(value:int):void
textproperty 
text:String  [write-only]

Sets the text and fire InteractiveEvent.TEXT_CHANGED event.

Implementation
    public function set text(value:String):void
Constructor detail
AWTextField()constructor
public function AWTextField()
Method detail
appendText()method
public override function appendText(newText:String):void

Appends new text and fire InteractiveEvent.TEXT_CHANGED event.

Parameters
newText:String
fireScrollChangeEvent()method 
protected function fireScrollChangeEvent(programmatic:Boolean = true):voidParameters
programmatic:Boolean (default = true)
fireTextChangeEvent()method 
protected function fireTextChangeEvent(programmatic:Boolean = true):voidParameters
programmatic:Boolean (default = true)
replaceSelectedText()method 
public override function replaceSelectedText(value:String):void

Replace selected text and fire InteractiveEvent.TEXT_CHANGED event.

Parameters
value:String
replaceText()method 
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 detail
scrollChangedevent 
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:

PropertyValue
bubblesfalse
cancelablefalse
isProgrammatic()True means this event is fired by the programmatic reason, false means user mouse/keyboard interaction reason.
currentTargetThe 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.
targetThe 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.
textChangedevent  
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:

PropertyValue
bubblesfalse
cancelablefalse
isProgrammatic()True means this event is fired by the programmatic reason, false means user mouse/keyboard interaction reason.
currentTargetThe 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.
targetThe 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.