MovieClip.enabled Property

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Chapter 18.  ActionScript Language Reference
MovieClip.enabled Property Flash 6

Boolean; allows or disallows button interaction 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 Section 13.9.

Usage

The Tab key does not work reliably in Test Movie mode unless Control figs/u2192.gif 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.useHandCursor; Section 13.9



    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net