User Guide

TextField 1167
Methods inherited from class Object
addListener (TextField.addListener method)
public addListener(listener:Object) : Boolean
Registers an object to receive TextField event notifications. The object will receive event
notifications whenever the
onChanged and onScroller event handlers have been invoked.
When a text field changes or is scrolled, the
TextField.onChanged and
TextField.onScroller event handlers are invoked, followed by the onChanged and
onScroller event handlers of any objects registered as listeners. Multiple objects can be
registered as listeners.
To remove a listener object from a text field, call
TextField.removeListener().
removeListener(liste
ner:Object) :
Boolean
Removes a listener object previously registered to a
text field instance with TextField.addListener().
removeTextField() :
Void
Removes the text field.
replaceSel(newText:S
tring) : Void
Replaces the current selection with the contents of
the newText parameter.
replaceText(beginInd
ex:Number,
endIndex:Number,
newText:String) :
Void
Replaces a range of characters, specified by the
beginIndex and endIndex parameters, in the
specified text field with the contents of the newText
parameter.
setNewTextFormat(tf:
TextFormat) : Void
Sets the default new text format of a text field.
setTextFormat([begin
Index:Number],
[endIndex:Number],
textFormat:TextForma
t) : Void
Applies the text formatting specified by the
textFormat parameter to some or all of the text in a
text field.
addProperty (Object.addProperty method), hasOwnProperty
(Object.hasOwnProperty method), isPropertyEnumerable
(Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf
method), registerClass (Object.registerClass method), toString
(Object.toString method), unwatch (Object.unwatch method), valueOf
(Object.valueOf method), watch (Object.watch method)
Modifiers Signature Description