03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Modifiers Signature Description<br />

replaceSel(newText:S<br />

tring) : Void<br />

replaceText(beginInd<br />

ex:Number,<br />

endIndex:Number,<br />

newText:String) :<br />

Void<br />

Methods inherited from class Object<br />

addListener (TextField.addListener method)<br />

public addListener(listener:Object) : Boolean<br />

Replaces the current selection with the contents of<br />

the newText parameter.<br />

Replaces a range of characters, specified by the<br />

beginIndex <strong>and</strong> endIndex parameters, in the<br />

specified text field with the contents of the<br />

newText parameter.<br />

setNewTextFormat(tf: Sets the default new text format of a text field.<br />

TextFormat) : Void<br />

setTextFormat([begin<br />

Index:Number],<br />

[endIndex:Number],<br />

textFormat:TextForma<br />

t) : Void<br />

Applies the text formatting specified by the<br />

textFormat parameter to some or all of the text in<br />

a text field.<br />

addProperty (Object.addProperty method), hasOwnProperty<br />

(Object.hasOwnProperty method), isPropertyEnumerable<br />

(Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf<br />

method), registerClass (Object.registerClass method), toString<br />

(Object.toString method), unwatch (Object.unwatch method), valueOf<br />

(Object.valueOf method), watch (Object.watch method)<br />

Registers an object to receive TextField event notifications. The object will receive event<br />

notifications whenever the onChanged <strong>and</strong> onScroller event h<strong>and</strong>lers have been invoked.<br />

When a text field changes or is scrolled, the TextField.onChanged <strong>and</strong><br />

TextField.onScroller event h<strong>and</strong>lers are invoked, followed by the onChanged <strong>and</strong><br />

onScroller event h<strong>and</strong>lers of any objects registered as listeners. Multiple objects can be<br />

registered as listeners.<br />

To remove a listener object from a text field, call TextField.removeListener().<br />

TextField 613

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!