Onmouseup (Mouse.onmouseup Event Listener) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

The following example sets the
the
and
pointer positions. The device must support a stylus or mouse for this example to
x
y
work. To use the example, you create a movie clip and set its Linkage identifier to
. Then add the following ActionScript code to Frame 1 of the Timeline:
pointer_id
this.attachMovie("pointer_id", "pointer_mc", this.getNextHighestDepth());
var mouseListener:Object = new Object();
mouseListener.onMouseMove = function() {
pointer_mc._x = _xmouse;
pointer_mc._y = _ymouse;
};
Mouse.addListener(mouseListener);
See also
addListener (Mouse.addListener method)

onMouseUp (Mouse.onMouseUp event listener)

onMouseUp = function() {}
Notified when the mouse button is released. To use the
listener object. You can then define a function for
register the listener with the Mouse object, as shown in the following code:
var someListener:Object = new Object();
someListener.onMouseUp = 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
is
or
true
System.capabilities.hasStylus
Availability: ActionScript 1.0; Flash Lite 2.0
436
ActionScript classes
and
positions of the
x
y
onMouseUp
is
true
movie clip instance to
pointer_mc
listener, you must create a
onMouseUp
and use
addListener()
System.capabilities.hasMouse
.
to

Advertisement

Table of Contents
loading

Table of Contents