MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 603

Actionscript language reference
Table of Contents

Advertisement

MovieClip.onKillFocus
Availability
Flash Player 6.
Usage
my_mc.onKillFocus = function (newFocus:Object) {
// your statements here
}
Parameters
The object that is receiving the keyboard focus.
newFocus
Returns
Nothing.
Description
Event handler; invoked when a movie clip loses keyboard focus. The
receives one parameter,
focus. If no object receives the focus,
You must define a function that executes when the event handler is invoked. You can define the
function on the Timeline or in a class file that extends the MovieClip class or is linked to a symbol
in the library.
Example
The following example displays writes information about the movie clip that loses focus, and the
instance that currently has focus. Two movie clips, called
Add the following ActionScript to your AS or FLA document:
my_mc.onRelease = Void;
other_mc.onRelease = Void;
my_mc.onKillFocus = function(newFocus) {
trace("onKillFocus called, new focus is: "+newFocus);
};
Tab between the two instances, and information writes to the log file.
See Also
MovieClip.onSetFocus
MovieClip.onLoad
Availability
Flash Player 6.
Usage
my_mc.onLoad = function() {
// your statements here
}
, which is an object that represents the new object receiving the
newFocus
newFocus
onKillFocus
contains the value
null
and
my_mc
other_mc
method
.
, are on the Stage.
MovieClip.onLoad
603

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flex

Table of Contents