MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 522

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

MovieClip.onKeyUp
Availability
Flash Player 6.
Usage
my_mc.onKeyUp = function() {
// your statements here
}
Parameters
None.
Returns
Nothing.
Description
Event handler; invoked when a key is released. The
parameters. You can use the
key was pressed. You must define a function that executes when the event handler is invoked.
The
event handler works only if the movie clip has input focus enabled and set. First,
onKeyUp
the
focusEnabled
focus. This can be done either by using
navigate to the clip.
If
Selection.setFocus()
Selection.setFocus()
is moved.
Example
The following example defines a function for the
the Output panel.
my_mc.onKeyUp = function () {
trace ("onKeyUp called");
};
The following example sets input focus:
MovieClip.focusEnabled = true;
Selection.setFocus(MovieClip);
522
Chapter 12: ActionScript Dictionary
Key.getAscii()
property must be set to
Selection.setFocus()
is used, the path for the movie clip must be passed to
. It is very easy for other elements to take the focus back once the mouse
event handler is invoked with no
onKeyUp
and
Key.getCode()
for the movie clip. Then, the clip must be given
true
method that sends a
onKeyUp
methods to determine which
or by setting the tab key to
trace()
action to

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents