MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference page 70

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

Advertisement

Parameters
mouseEvent:Object
statements following it within curly braces ({ }) execute. Any of the following values can be
specified for the
mouseEvent
The mouse button is pressed while the pointer is over the button.
press
The mouse button is released while the pointer is over the button.
release
releaseOutside
outside the button area, and released. Both the
precede a
releaseOutside
Note: This event is supported in Flash Lite only if
or
true
System.capabilities.hasStylus
The pointer rolls outside the button area.
rollOut
Note: This event is supported in Flash Lite only if
or
true
System.capabilities.hasStylus
The mouse pointer rolls over the button.
rollOver
While the pointer is over the button, the mouse button is pressed and then rolls
dragOut
outside the button area.
While the pointer is over the button, the mouse button has been pressed, then
dragOver
rolled outside the button, and then rolled back over the button.
"
keyPress
<key>
parameter, specify a key constant, as shown in the code hinting in the Actions Panel. You
can use this parameter to intercept a key press, that is, to override any built-in behavior for
the specified key. The button can be anywhere in your application, on or off the Stage.
One limitation of this technique is that you can't apply the
must do it at authoring time. Make sure that you select Control > Disable Keyboard
Shortcuts, or certain keys with built-in behavior won't be overridden when you test the
application using Control > Test Movie.
For a list of key constants, see the Key class.
70
ActionScript language elements
- A
is a trigger called an event . When the event occurs, the
mouseEvent
parameter:
While the pointer is over the button, the mouse button is pressed, rolled
event.
" The specified keyboard key is pressed. For the
and the
press
dragOut
System.capabilities.hasMouse
is
.
true
System.capabilities.hasMouse
is
.
true
handler at runtime; you
on()
events always
is
is
portion of the
key

Advertisement

Table of Contents
loading

Table of Contents