Arguments
mouseEvent: One of the defined Mouse / keyboard Events.
statements: A list of any valid scripting commands that are executed if the Event has occurred.
Description
An Event Handler. Code is executed when the Mouse Event condition applies to the Object.
Sample
Make this Object bigger when the mouse is rolled over it.
// Increase the scale by 10% when the mouse rolls over this button/sprite
onSelfEvent(rollOver) {
_xscale += 10;
_yscale += 10;
}
// return to normal size when mouse moves away
onSelfEvent(rollOut) {
_xscale -= 10;
_yscale -= 10;
} Flash MX Differences
This function is not implemented in Flash MX.