ActionScript for Flash MX: The Definitive Guide, Second Edition

ActionScript for Flash MX: The Definitive Guide, 2nd EditionBy Colin Moock
Chapter 18.  ActionScript Language Reference
MovieClip.onPress( ) Event Handler Flash 6

Button event; occurs when the mouse is pressed over the clip

mc.onPress() on (press) { statements }

Description

The onPress( ) event handler is identical to the Button.onPress( ) event, except that it can also be applied to movie clip instances (though not main movies such as _root, _level0, etc.).

See Also

Button.onPress( ); Section 13.9

    Категории