ADBRITE ads links
You are here: CodeIdol.com > Flash > Macromedia Flash® ActionScript: Training from the Source > Lesson7.Events, Listeners, And Callbacks
Macromedia Flash® ActionScript: Training from the Source
| Lesson 7. Events, Listeners, and Callbacks
We push buttons, we push people, and we even push people's buttons, all with a single purpose: to elicit a response. The Macromedia Flash way of saying this is with events.
Events are actions that happen...
|
|
| What You Will Learn
In this lesson, you will:
Learn what events doLearn about the types of events in FlashLearn how event handlers are usedUse movie clip event handlers in a projectLearn how listeners are usedUse listeners in a project
...
|
|
| Approximate Time
This lesson takes approximately thirty minutes to complete.
...
|
|
| Lesson Files
Media Files:
None
Starting Files:
Lesson07/Start/Billiards1.fla
Lesson07/Start/MouseKeyboardHistory1.fla
Completed Projects:
Lesson07/Completed/Billiards2.fla
Lesson07/Completed/MouseKeyboardHistory2.fla
...
|
|
| What Events Do
Many computer programs allow users to accomplish tasks by dragging and dropping items on the screen, resizing windows, making adjustments with sliders, and creating artistic masterpieces using "virtual" art toolsall modes ...
|
|
| Types of Events in Flash
In a Flash environment there are three ways to work with events: using clip events, event handlers, and listeners. The first type of event, the clip event, is a way of placing code directly on a movie clip or button and ha...
|
|
| Event Handlers
Event handlers are the most common way to work with events in Flash. Event handlers are nothing more than methods on objects. For example, the XML class has an event handler named onLoad. This onLoad event handler is actually a meth...
|
|
| Creating a Project Using Event Handlers
In this project we will create a simple Billiards application in which the user can hit a ball with a stick. It's a very simple demonstration of how to use event handlers in a project.
1. Op...
|
|
| Listeners
Listeners are a different kind of event handler. Instead of overriding a method of the object, listeners "register" themselves with the object. Then when the event occurs, the object is responsible for notifying all the registe...
|
|
| Creating a Project Using Listeners
In this project, we will create a simple History application that will output each time the user clicks the mouse or presses a key on the keyboard. This example will demonstrate how to use listeners in a project....
|
|
| What You Have Learned
In this lesson, you have:
Learned what events do (page 163)Learned the types of events in Flash (page 163)Learned how event handlers are used (pages 164166)Used movie clip event handlers in a project (pages 167170)Learned ho...
|
|
You are here: CodeIdol.com > Flash > Macromedia Flash® ActionScript: Training from the Source > Lesson7.Events, Listeners, And Callbacks
|
|
Related tags
Popular Categories
Unix books and guides
AJAX popular information
C# language guides
Windows books and cookbooks
.......
|
|