
Button.tabIndex Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
472
|
ActionScript Language Reference
Usage
The Tab key does not work reliably in Test Movie mode unless Control ➝ Disable
Keyboard Shortcuts is enabled. Be sure to test keyboard behavior in the Standalone Player,
if applicable, and in the Flash Player for all targeted web browsers.
Example
The following code prevents the keyboard from accessing done_btn:
done_btn.tabEnabled = false;
See Also
Button.enabled, Button.tabIndex, MovieClip.tabChildren, MovieClip.tabEnabled,
TextField.tabEnabled
Button.tabIndex Property
specifies the button’s index in the custom tab order
Flash 6
read/write
theButton.tabIndex
Description
The integer tabIndex property specifies theButton’s position in the custom tab order. When
no text field, clip, or button has a
tabIndex property defined, Flash determines the tab
order automatically, and pressing the Tab key moves focus between buttons and text fields
from right to left, then top to bottom. Use the
tabIndex property to force Tab key naviga-
tion to follow a custom sequence, overriding the automatic order. For complete details, see
TextField.tabIndex.
Objects with
_visible set to false are not included in the tab order. When at least one
object has
tabIndex set, any object without an assigned tabIndex cannot be accessed via the
Tab key.
By default, ...