Mouse Events
The mouse is the most common way your audience interacts with your Flash creation, so a lot of events center around the mouse. The MouseEvent class detects all sorts of mouse events, including a variety of clicks and mouse movements, like mouse over (when the cursor moves over an object) and mouse out (when the cursor moves away from an object). Such events are the stuff that buttons and other smart objects are made of. So, roll up your sleeves, and get ready to create a mouse event listener. If you have a project deadline looming and just need bulletproof code for a simple mouse-over event, see the box on this page.
Note
A mouse event refers to an event generated by any kind of pointer device, whether it's a mouse, a trackpad on a laptop, or a drawing pad.
Get Flash CS5: The Missing Manual now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.