03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The tabChildren property has no effect if the tabIndex property is used; the tabChildren<br />

property affects only automatic tab ordering.<br />

The following example disables tabbing for all child movie clips inside a parent movie clip<br />

called menu_mc:<br />

menu_mc.onRelease = function(){};<br />

menu_mc.menu1_mc.onRelease = function(){};<br />

menu_mc.menu2_mc.onRelease = function(){};<br />

menu_mc.menu3_mc.onRelease = function(){};<br />

menu_mc.menu4_mc.onRelease = function(){};<br />

menu_mc.tabChildren = false;<br />

Change the last line of code to the following to include the child movie clip instances of<br />

menu_mc in the automatic tab ordering:<br />

menu_mc.tabChildren = true;<br />

See also<br />

tabIndex (Button.tabIndex property), tabEnabled (MovieClip.tabEnabled<br />

property), tabIndex (MovieClip.tabIndex property), tabIndex<br />

(TextField.tabIndex property)<br />

tabEnabled (MovieClip.tabEnabled property)<br />

public tabEnabled : Boolean<br />

Specifies whether the movie clip is included in automatic tab ordering. It is undefined by<br />

default.<br />

If the tabEnabled property is undefined, the object is included in automatic tab ordering<br />

only if it defines at least one movie clip h<strong>and</strong>ler, such as MovieClip.onRelease. If<br />

tabEnabled is true, the object is included in automatic tab ordering. If the tabIndex<br />

property is also set to a value, the object is included in custom tab ordering as well.<br />

If tabEnabled is false, the object is not included in automatic or custom tab ordering, even<br />

if the tabIndex property is set. However, if MovieClip.tabChildren is true, you can still<br />

include the movie clip's children in automatic tab ordering, even if tabEnabled is set to<br />

false.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 6<br />

Example<br />

The following example does not include myMC2_mc in the automatic tab ordering:<br />

myMC1_mc.onRelease = function() {};<br />

myMC2_mc.onRelease = function() {};<br />

940 <strong>ActionScript</strong> classes

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!