O'Reilly logo

Fundamentals of ActionScript 3.0: Develop and Design by Doug Winnie

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

5. Creating Events

So far, none of your projects has been interactive. In fact, they haven’t required any user interaction at all to work. When you want to build in the ability for someone to control a project, you are building an interface for it. Interfaces are powered by events. When you need to respond to mouse clicks, keyboard presses, or anything that the user is doing, you’ll use events in ActionScript. Events are Flash’s way of letting objects know that something is happening. In this chapter, you’ll learn how events work and how to create a couple of basic event types.

Events: Explained

Events in ActionScript have two parts, just like a two-way conversation. In a conversation, there is a speaker and a listener. The speaker says something, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required