EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Onmousedown (Mouse.onmousedown Event Listener)

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Mouse 433
To view the entire script, see the animation.fla file in the ActionScript Samples Folder. The
following list shows typical paths to the ActionScript Samples folder:
Windows: boot drive\Program Files\Macromedia\Flash 8\Samples and
Tutorials\Samples\ActionScript
Macintosh: Macintosh HD/Applications/Macromedia Flash 8/Samples and Tutorials/
Samples/ActionScript
See also
onMouseDown (Mouse.onMouseDown event listener), onMouseMove
(Mouse.onMouseMove event listener)
, onMouseUp (Mouse.onMouseUp event
listener)
onMouseDown (Mouse.onMouseDown event
listener)
onMouseDown = function() {}
Notified when the mouse button is pressed. To use the onMouseDown listener, you must create
a listener object. You can then define a function for
onMouseDown and use addListener() to
register the listener with the Mouse object, as shown in the following code:
var someListener:Object = new Object();
someListener.onMouseDown = function () { ... };
Mouse.addListener(someListener);
Listeners enable different pieces of code to cooperate because multiple listeners can receive
notification about a single event.
Note: This event listener is supported in Flash Lite only if
System.capabilities.hasMouse
is
true or System.capabilities.hasStylus is true.
Availability: ActionScript 1.0; Flash Lite 2.0

Table of Contents

Related product manuals