Button
289
tabEnabled (Button.tabEnabled property)
public tabEnabled :
Boolean
Specifies whether
my_btn
is included in automatic tab ordering. It is
undefined
by default.
If the
tabEnabled
property is
undefined
or
true
, the object is included in automatic tab
ordering. If the
tabIndex
property is also set to a value, the object is included in custom tab
ordering as well. If
tabEnabled
is
false
, the object is not included in automatic or custom
tab ordering, even if the
tabIndex
property is set.
Availability:
ActionScript 1.0; Flash Lite 2.0
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
tabIndex (Button.tabIndex property)
,
tabEnabled (MovieClip.tabEnabled
property)
,
tabEnabled (TextField.tabEnabled property)
tabIndex (Button.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.
Содержание Flash Lite 2
Страница 1: ...Flash Lite 2 x ActionScript Language Reference...
Страница 22: ...22 Contents...
Страница 244: ...244 ActionScript language elements...
Страница 760: ...760 ActionScript classes...