Onrollover (Button.onrollover Handler); Onsetfocus (Button.onsetfocus Handler) - MACROMEDIA FLASHLITE2 ACTIONSCRIPT-LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

Example
In the following example, a function that sends a trace() statement to the Output panel is
defined for the
onRollOut
my_btn.onRollOut = function () {
trace ("onRollOut called");
};

onRollOver (Button.onRollOver handler)

onRollOver = function() {}
Invoked when the button gains focus. This can happen when the user clicks another button
outside of the currently selected button. Invoked when the pointer moves over a button area.
You must define a function that is executed when the event handler is invoked.
Availability: ActionScript 1.0; Flash Lite 2.0
Example
In the following example, a function that sends a trace() statement to the Output panel is
defined for the
onRollOver
my_btn.onRollOver = function () {
trace ("onRollOver called");
};

onSetFocus (Button.onSetFocus handler)

onSetFocus = function(oldFocus:Object) {}
Invoked when a button receives keyboard focus. The
loses the focus. For example, if the user presses the Tab key to move the input focus from a
text field to a button, oldFocus contains the text field instance.
If there is no previously focused object,
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
- The object to lose keyboard focus.
oldFocus:Object
handler:
handler:
oldFocus
parameter is the object that
oldFocus
contains a null value.
Button
285

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash lite 2

Table of Contents