Button.tabindex - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

Button.tabIndex

Availability
Flash Player 6.
Usage
my_btn.tabIndex:Number
Description
Property; lets you customize the tab ordering of objects in a SWF file. You can set the
property on a button, movie clip, or text field instance; it is
If any currently displayed object in the SWF file contains a
ordering is disabled, and the tab ordering is calculated from the
the SWF file. The custom tab ordering only includes objects that have
The
property may be a non-negative integer. The objects are ordered according to their
tabIndex
properties, in ascending order. An object with a
tabIndex
with a
tabIndex
the other in the tab ordering is
The custom tab ordering defined by the
is paid to the hierarchical relationships of objects in the SWF file. All objects in the SWF file with
properties are placed in the tab order, and the tab order is determined by the order of
tabIndex
the
values. If two objects have the same
tabIndex
. You shouldn't use the same
undefined
Example
The following ActionScript is used to set the
. However, all four buttons (
false
custom tab order using
included in a custom or automatic tab order because
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
Button.tabEnabled, MovieClip.tabChildren, MovieClip.tabEnabled, MovieClip.tabIndex,
TextField.tabIndex
160
Chapter 2: ActionScript Language Reference
value of
. If two objects have the same
2
undefined
one_btn
. Although
tabIndex
undefined
tabIndex
tabIndex
tabIndex
.
property is flat. This means that no attention
tabIndex
value, the one that goes first is
tabIndex
value for multiple objects.
tabIndex
property for one of four buttons to
tabEnabled
,
,
two_btn
three_btn,
is set for
tabIndex
tabEnabled
by default.
property, automatic tab
properties of objects in
tabIndex
properties.
tabIndex
value of
precedes an object
1
value, the one that precedes
and
) are placed in a
four_btn
,
three_btn
three_btn
is set to
for that instance.
false
tabIndex
is not

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents