EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 610

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
610 Chapter 12: ActionScript Dictionary
Selection.getEndIndex()
Availability
Flash Player 5.
Usage
Selection.getEndIndex()
Parameters
None.
Returns
An integer.
Description
Method; returns the ending index of the currently focused selection span. If no index exists, or if
there is no currently focused selection span, the method returns -1. Selection span indexes are
zero-based (for example, the first position is 0, the second position is 1, and so on).
Selection.getFocus()
Availability
Flash Player 5. Instance names for buttons and text fields work in Flash Player 6 and later.
Usage
Selection.getFocus()
Parameters
None.
Returns
A string or null.
Description
Method; returns the variable name of the text field that has focus. If no text field has focus, the
method returns
null. If the current focus is a button, and the button is a Button object,
getFocus() returns the target path as a string. If the current focus is a text field, and the text field
is a TextField object,
getFocus() returns the target path as a string.
If a button movie clip is the currently focused button,
Selection.getFocus() returns the target
path of the button movie clip. If a Text Field with an instance name is currently focused,
Selection.getFocus() returns the target path of the TextField object. Otherwise, it returns the
Text Field's variable name.

Table of Contents

Related product manuals