684
ActionScript classes
Example
The following example creates several text fields, called
one_txt
,
two_txt
,
three_txt
and
four_txt
. The
three_txt
text field has the
tabEnabled
property set to
false
, so it is
excluded from the automatic tab ordering.
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;
two_txt.type = "input";
this.createTextField("three_txt", this.getNextHighestDepth(), 10, 70, 100,
22);
three_txt.border = true;
three_txt.type = "input";
this.createTextField("four_txt", this.getNextHighestDepth(), 10, 100, 100,
22);
four_txt.border = true;
four_txt.type = "input";
three_txt.tabEnabled = false;
three_txt.text = "tabEnabled = false;";
See also
tabEnabled (Button.tabEnabled property)
,
tabEnabled (MovieClip.tabEnabled
property)
tabIndex (TextField.tabIndex property)
public tabIndex :
Number
Lets you customize the tab ordering of objects in a SWF file. You can set the
tabIndex
property on a button, movie clip, or text field instance; it is
undefined
by default.
If any currently displayed object in the SWF file contains a
tabIndex
property, automatic tab
ordering is disabled, and the tab ordering is calculated from the
tabIndex
properties of
objects in the SWF file. The custom tab ordering only includes objects that have
tabIndex
properties.
The
tabIndex
property must be a positive 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
.
Summary of Contents for Flash Lite 2
Page 1: ...Flash Lite 2 x ActionScript Language Reference...
Page 22: ...22 Contents...
Page 244: ...244 ActionScript language elements...
Page 760: ...760 ActionScript classes...