Tabindex (Textfield.tabindex Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

The
MovieClip.getNextHighestDepth()
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
See also
tabEnabled (Button.tabEnabled property)
property)

tabIndex (TextField.tabIndex property)

public tabIndex : Number
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
objects in the SWF file. The custom tab ordering only includes objects that have
properties.
The
property must be a positive integer. The objects are ordered according to their
tabIndex
properties, in ascending order. An object with a
tabIndex
object with a
tabIndex
precedes the other in the tab ordering is
The custom tab ordering defined by the
attention is paid to the hierarchical relationships of objects in the SWF file. All objects in the
SWF file with
tabIndex
determined by the order of the
value, the one that goes first is
multiple objects.
Availability: ActionScript 1.0; Flash Player 6
Example
The following ActionScript dynamically creates four text fields and assigns them to a custom
tab order. Add the following ActionScript to your FLA or AS file:
this.createTextField("one_txt", this.getNextHighestDepth(), 10, 10, 100,
22);
one_txt.border = true;
one_txt.type = "input";
this.createTextField("two_txt", this.getNextHighestDepth(), 10, 40, 100,
22);
two_txt.border = true;
method used in this example requires Flash Player
MovieClip.getNextHighestDepth()
value of 2. If two objects have the same
undefined
tabIndex
properties are placed in the tab order, and the tab order is
values. If two objects have the same
tabIndex
. You should not use the same
undefined
,
tabEnabled (MovieClip.tabEnabled
undefined
tabIndex
tabIndex
value of
tabIndex
tabIndex
.
property is flat. This means that no
method.
tabIndex
by default.
property, automatic tab
properties of
tabIndex
precedes an
1
value, the one that
tabIndex
value for
tabIndex
TextField
1215

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF