Ondragover (Button.ondragover Handler); Onkeydown (Button.onkeydown Handler) - 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

onDragOver (Button.onDragOver handler)

onDragOver = function() {}
Invoked when the user presses the mouse button outside of the button and then drags the
pointer over the button. You must define a function that is executed when the event handler is
invoked.
Note: The
onDragOver
System.capabilities.hasMouse is true
.
true
Availability: ActionScript 1.0; Flash Lite 2.0
Example
The following example defines a function for the onDragOver handler that sends a
statement to the Output panel. Create a button called
following ActionScript on the Timeline:
my_btn.onDragOut = function() {
trace("onDragOut: "+this._name);
};
my_btn.onDragOver = function() {
trace("onDragOver: "+this._name);
};
When you test the SWF file, drag the pointer off the button instance. Then, while pressing
the mouse button, drag onto the button instance again. Notice that the Output panel tracks
your movements.
See also
onDragOut (Button.onDragOut handler)

onKeyDown (Button.onKeyDown handler)

onKeyDown = function() {}
Invoked when a button has keyboard focus and a key is pressed. The
handler is invoked with no parameters. You can use the
methods to determine which key was pressed. You must define a function
Key.getCode()
that is executed when the event handler is invoked.
Availability: ActionScript 1.0; Flash Lite 2.0
280
ActionScript classes
Event Handler is supported for Flash Lite 2.0 only if
or
System.capabilities.hasStylus is
on the Stage and enter the
my_btn
Key.getAscii()
trace()
event
onKeyDown
and

Advertisement

Table of Contents
loading

Table of Contents