372
ActionScript classes
The
tabIndex
property may be a non-negative integer. The objects are ordered according to
their
tabIndex
properties, in ascending order. An object with a
tabIndex
value of
1
precedes
an object with a
tabIndex
value of
2
. If two objects have the same
tabIndex
value, the one
that precedes the other in the tab ordering is
undefined
.
The custom tab ordering defined by the
tabIndex
property is
flat
. This means that no
attention is paid to the hierarchical relationships of objects in the SWF file. All objects in the
SWF file with
tabIndex
properties are placed in the tab order, and the tab order is
determined by the order of the
tabIndex
values. If two objects have the same
tabIndex
value, the one that goes first is
undefined
. You shouldn't use the same
tabIndex
value for
multiple objects.
Availability:
ActionScript 1.0; Flash Player 6
Example
The following ActionScript is used to set the
tabEnabled
property for one of four buttons to
false
. However, all four buttons (
one_btn
,
two_btn
,
three_btn,
and
four_btn
) are placed
in a custom tab order using
tabIndex
. Although
tabIndex
is set for
three_btn
,
three_btn
is not included in a custom or automatic tab order because
tabEnabled
is set to
false
for
that instance. To set the tab ordering for the four buttons, add the following ActionScript to
Frame 1 of the Timeline:
three_btn.tabEnabled = false;
two_btn.tabIndex = 1;
four_btn.tabIndex = 2;
three_btn.tabIndex = 3;
one_btn.tabIndex = 4;
Make sure that you disable keyboard shortcuts when you test the SWF file by selecting
Control > Disable Keyboard Shortcuts in the test environment.
See also
tabEnabled (Button.tabEnabled property)
,
tabChildren (MovieClip.tabChildren
property)
,
tabEnabled (MovieClip.tabEnabled property)
,
tabIndex
(MovieClip.tabIndex property)
,
tabIndex (TextField.tabIndex property)
_target (Button._target property)
public _target : String [read-only]
Returns the target path of the button instance specified by
my_btn
.
Availability:
ActionScript 1.0; Flash Player 6
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...