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, ...
Get Fundamentals of ActionScript 3.0: Develop and Design 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.