User Guide
UIComponent class 801
{
form.icon.visible = !form.icon.visible;
}
form.addEventListener("keyUp", formListener);
UIComponent.setFocus()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
componentInstance.setFocus();
Parameters
None.
Returns
Nothing.
Description
Method; sets the focus to this component instance. The instance with focus receives all
keyboard input.
Example
The following code gives focus to the checkbox instance:
checkbox.setFocus();
UIComponent.tabIndex
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
instance.tabIndex
Description
Property; a number indicating the tabbing order for a component in a document.
Example
The following code sets the value of tmp to the tabIndex property of the checkbox instance:
var tmp = checkbox.tabIndex;