Onrollover (Movieclip.onrollover Handler); Onsetfocus (Movieclip.onsetfocus Handler) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

onRollOver (MovieClip.onRollOver handler)

onRollOver = function() {}
Invoked when user moves the pointer over a movie clip area.
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.
Availability: ActionScript 1.0; Flash Player 6
Example
The following example defines a function for the
method that sends a
onRollOver()
action to the Output panel:
trace()
my_mc.onRollOver = function () {
trace ("onRollOver called");
}

onSetFocus (MovieClip.onSetFocus handler)

onSetFocus = function(oldFocus:Object) {}
Invoked when a movie clip receives keyboard focus. The
parameter is the object
oldFocus
that loses the focus. For example, if the user presses the Tab key to move the input focus from
a movie clip to a text field,
contains the movie clip instance.
oldFocus
If there is no previously focused object,
contains a null value.
oldFocus
You must define a function that executes when the event handler in 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.
Availability: ActionScript 1.0; Flash Player 6
Parameters
- The object to lose focus.
oldFocus:Object
910
ActionScript classes

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF