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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access