
MovieClip.onMouseUp() Event Handler
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
687
See Also
Mouse.onMouseDown(), MovieClip.onMouseMove(), MovieClip.onMouseUp()
MovieClip.onMouseMove() Event Handler
handler executed when mouse pointer moves while the clip is on stage
Flash 5; callback form introduced in Flash 6
mc.onMouseMove()
onClipEvent (mouseMove) {
statements
}
Description
The onMouseMove() event handler is the callback form (and more modern analogue) of the
legacy onClipEvent (mouseMove) event handler. The onMouseMove() event handler is iden-
tical to the Mouse.onMouseMove() listener event, except that it allows for screen refreshes
between frames via updateAfterEvent(). It executes when
mc is on stage and the mouse
pointer moves. The MovieClip.onMouseMove() handler would be obsolete in Flash 6 if
Mouse.onMouseMove() supported updateAfterEvent(). For complete details, see Mouse.
onMouseMove().
Example
// Callback form
_root.onMouseMove = function () {
trace("The mouse moved");
}
// Flash 5–style onClipEvent() block placed directly on a movie clip instance
onClipEvent (mouseMove) {
trace("The mouse moved");
}
See Also
Mouse.onMouseMove(), MovieClip.onMouseDown(), MovieClip.onMouseUp()
MovieClip.onMouseUp() Event Handler
handler executed when primary mouse button is released while the clip is on stage
Flash ...