
MovieClip.enabled Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
652
|
ActionScript Language Reference
MovieClip.enabled Property
Boolean; allows or disallows button interaction
Flash 6
read/write
mc enabled
Description
Like Button.enabled, the Boolean MovieClip.enabled property determines whether mc’s
button behavior is (
true) or is not (false) enabled. By default, MovieClip.enabled is true;
however, it has an effect only when one or more button events (onPress(), onRelease(), etc.)
are defined for
mc. When enabled is false, mc does not receive button event notifications,
the hand cursor is not shown, and
mc’s playhead does not jump automatically to the movie
clip’s
_up, _over and _down frames in response to mouse interaction. However, mc will still
play normally, and it can be focused with the Tab key. To disable tab focus, set
mc.
tabEnabled
to false.
For information on implementing button behavior for a movie clip, see the MovieClip class
Description,
MovieClip.hitArea, and “Using Movie Clips as Buttons” in Chapter 13.
Usage
The Tab key does not work reliably in Test Movie mode unless Control ➝ Disable
Keyboard Shortcuts is enabled. Be sure to test keyboard behavior in the Standalone Player,
if applicable, and in the Flash Player for all targeted web browsers.
See Also
Button.enabled, MovieClip.hitArea, MovieClip.tabEnabled, MovieClip ...