Arguments
object: The Sprite / Object / button / Text Field name.
mouseEvent: One of the defined Mouse / keyboard Events.
statements: A list of any valid scripting commands that are executed if the Event has occured.
Description
An Event Handler. Code is executed when the Mouse Event condition applies to the named Object.
Sample
Make the Object 'square' bigger when the mouse is rolled over it.
square.onSelfEvent(rollOver) {
this._xscale += 10;
this._yscale += 10;
}
// return to nomal size when mouse moves away
square.onSelfEvent(rollOut) {
this._xscale -= 10;
this._yscale -= 10;
}
Flash MX Differences
This function is not implemented in Flash MX.