This chapter covers the following topics:

  • How the ActionScript event model works

  • How to work with event listeners

  • How to use input events from the mouse and keyboard to allow interactivity in your projects

  • The event flow and why it's useful

One of the facets that makes Flash movies and Flex applications so appealing to users is that developers (you and me) can tap into the Flash Player to handle mouse and keyboard events and provide immediate feedback. All of the projects you've looked at so far in this book have been lacking one vital ingredient: user interaction. I'm going to remedy that here and now by taking you on a journey through the magical world of events and event handling.

As you might have ...

Get Foundation ActionScript 3.0 for Flash and Flex 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.