
MovieClip.tabEnabled Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
699
MovieClip.tabChildren Property
controls whether contained objects are included in the automatic tab order
Flash 6
read/write
mc.tabChildren
Description
The Boolean tabChildren property specifies whether the text fields and buttons inside mc
are included in the automatic tab order. It applies only to movie clips, not main movies
(e.g.,
_root, _level1). When tabChildren is true (the default), all buttons, movie clips
with button handlers, and text fields contained by
mc are part of the automatic tab order,
even when
mc.tabEnabled is false. When tabChildren is false, the objects contained by mc
are not accessible via the Tab key.
The
tabChildren property has two typical uses:
• It can conveniently disable tabbing for a whole group of objects. For example, to dis-
able a set of toolbar buttons, place the buttons inside a movie clip and set the clip’s
tabChildren to false.
• It can prevent a movie clip’s contents from interfering with the clip’s keyboard accessi-
bility. For example, to prevent the Tab key from accessing, say, the handle inside a
slider bar, set the slider bar’s
tabEnabled to true and tabChildren to false. This way,
the entire bar counts as a single tab index in the tab order.
Usage
The Tab key does not work reliably