
MovieClip.onPress() Event Handler
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
688
|
ActionScript Language Reference
button is released. The MovieClip.onMouseUp() handler would be obsolete in Flash 6 if
Mouse.onMouseUp() supported updateAfterEvent(). For complete details, see Mouse.
onMouseUp().
Example
// Callback form
_root.onMouseUp = function () {
trace("The mouse was released");
}
// Flash 5–style onClipEvent() block placed directly on a movie clip instance
onClipEvent (mouseUp) {
trace("The mouse was released");
}
See Also
Mouse.onMouseUp(), MovieClip.onMouseDown(), MovieClip.onMouseMove()
MovieClip.onPress() Event Handler
Button event; occurs when the mouse is pressed over the clip
Flash 6
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(); “Using Movie Clips as Buttons” in Chapter 13
MovieClip.onRelease() Event Handler
Button event; occurs when the mouse is pressed and then released over the clip
Flash 6
mc.onRelease()
on (release) {
statements
}
Description
The onRelease() event handler is identical to the Button.onRelease() event, except that it can
also be applied to movie clip instances (though not main movies such as
_root, _level0 ...