CHAPTER 6

image

User Interaction and More with Events

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 ...

Get Foundation ActionScript 3, Second Edition 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.