User Guide
620 Chapter 7: ActionScript for Flash
The following example disables tabbing for all children movie clips inside a parent movie clip
called
menu_mc.
menu_mc.onRelease = function(){};
menu_mc.menu1_mc.onRelease = function(){};
menu_mc.menu2_mc.onRelease = function(){};
menu_mc.menu3_mc.onRelease = function(){};
menu_mc.menu4_mc.onRelease = function(){};
menu_mc.tabChildren = false;
Change the last line of code to the following, in order to include the children movie clip instances
of
menu_mc in the automatic tab ordering.
menu_mc.tabChildren = true;
See also
MovieClip.tabEnabled, MovieClip.tabIndex, TextField.tabIndex
MovieClip.tabEnabled
Availability
Flash Player 6.
Usage
my_mc.tabEnabled:Boolean
Description
Property; specifies whether my_mc is included in automatic tab ordering. It is undefined
by default.
If
tabEnabled is undefined, the object is included in automatic tab ordering only if it defines at
least one movie clip handler, such as
MovieClip.onRelease. If tabEnabled is 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. However, if MovieClip.tabChildren is true, the movie clip’s
children can still be included in automatic tab ordering, even if
tabEnabled is false.
Example
The following example does not include myMC2_mc in the automatic tab ordering.
myMC1_mc.onRelease = function() {};
myMC2_mc.onRelease = function() {};
myMC3_mc.onRelease = function() {};
myMC2_mc.tabEnabled = false;
See also
MovieClip.tabChildren, MovieClip.tabIndex, TextField.tabEnabled