The events of the button element are listed below.
Flash Event |
Description |
Visual Effect |
|
rollOver |
Mouse enters the hit area while the mouse button is up. |
Button changes from up to over state. |
|
rollOut |
Mouse leaves the hit area while the mouse button is up. |
Button changes from over to up state. |
|
press |
Mouse button is pressed while the mouse is inside the hit area. |
Button changes from over to down state. |
|
release |
Mouse button is released while the mouse is inside the hit area. |
Button changes from down to over state. |
There are two typess of buttons supported by Flash Player: push and menu buttons. The difference is in events tracking.
The following transitions apply only when tracking push buttons:
Flash Event |
Description |
Visual Effect |
|
dragOver |
Mouse is dragged inside the hit area while the mouse button is down. |
Button changes from over to down state. |
|
dragOut |
Mouse is dragged outside the hit area while the mouse button is down. |
Button changes from down to over state. |
|
releaseOutside |
Mouse button is released outside the hit area while the mouse is captured. |
Button changes from over to up state. |
The following transitions apply only when tracking menubuttons:
Flash Event |
Description |
Visual Effect |
|
dragOver |
Mouse is dragged inside the hit area while the mouse button is down. |
Button changes from up to down state. |
|
dragOut |
Mouse is dragged outside the hit area while the mouse button is down. |
Button changes from down to up state. |