EasyManua.ls Logo

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE - Onrollout (Button.onrollout Handler); Onrollover (Button.onrollover Handler); Onsetfocus (Button.onsetfocus Handler)

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
366 ActionScript classes
onRollOut (Button.onRollOut handler)
onRollOut = function() {}
Invoked when the pointer moves outside a button area. You must define a function that
executes when the event handler is invoked.
Availability: ActionScript 1.0; Flash Player 6
Example
In the following example, a function that sends a trace() statement to the Output panel is
defined for the
onRollOut handler:
my_btn.onRollOut = function () {
trace ("onRollOut called");
};
onRollOver (Button.onRollOver handler)
onRollOver = function() {}
Invoked when the pointer moves over a button area. You must define a function that executes
when the event handler is invoked.
Availability: ActionScript 1.0; Flash Player 6
Example
In the following example, a function that sends a trace() statement to the Output panel is
defined for the
onRollOver handler:
my_btn.onRollOver = function () {
trace ("onRollOver called");
};
onSetFocus (Button.onSetFocus handler)
onSetFocus = function(oldFocus:Object) {}
Invoked when a button receives keyboard focus. The oldFocus parameter is the object that
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,
oldFocus contains a null value.
Availability: ActionScript 1.0; Flash Player 6
Parameters
oldFocus:Object - The object to lose keyboard focus.

Table of Contents

Related product manuals