MovieClip.onLoad 523
MovieClip.onKillFocus
Availability
Flash Player 6.
Usage
my_mc.onKillFocus = function (newFocus) {
// your statements here
}
Parameters
newFocus
The object that is receiving the keyboard focus.
Returns
Nothing.
Description
Event handler; invoked when a movie clip loses keyboard focus. The onKillFocus method
receives one parameter,
newFocus, which is an object representing the new object receiving the
focus. If no object receives the focus,
newFocus contains the value null.
MovieClip.onLoad
Availability
Flash Player 6.
Usage
my_mc.onLoad = function() {
// your statements here
}
Parameters
None.
Returns
Nothing.
Description
Event handler; invoked when the movie clip is instantiated and appears in the Timeline. You
must define a function that executes when the event handler is invoked.
This handler can be used only with movie clips for which you have a symbol in the library that is
associated with a class. If you want an event handler to be invoked when a specific movie clip
loads, for example when you use
MovieClip.loadMovie() to load a SWF file dynamically, you
must use
onClipEvent(load) instead of this handler. The latter handler is invoked when any
movie clip loads.