Join Joseph Labrecque for an in-depth discussion in this video Events, part of Learning ActionScript.
ActionScript 3 has a robust and flexible event model. …In this lesson, we'll explore how to listen for, and respond to, events within …Action Script. So here, I have a basic shell of a class, …there's really nothing going on here yet. And what we're going to want to do is in this …case, we'll set this up to listen for mouse events. …Specifically, click events from a mouse. And based upon the x and y position of …the cursor, what we'll do is trace out those numbers in the Console window.…
So, to do this, in our Constructor Function, we're going to add an event …listener to the stage. When we refer to the stage in …ActionScript, we're talking about basically the visible area that you can …see when you run a SWF or an AIR file or something like that. …It's your, your visible workspace. So, here we'll say stage.addEventListener.…
So, what type of event listener? You can see here that there is all sorts …of different events that we can use, and you can pick any one you want. …In this case, again we're going to use MouseEvent.CLICK to detect mouse clicks. …
Author
Released
12/19/2011- What is ActionScript and why should I learn it?
- ActionScript 2.0 vs. ActionScript 3.0
- Implementing external source code
- Working in Flash Professional and Flash Builder
- Understanding language fundamentals
- Working with ActionScript objects
Skill Level Beginner
Duration
Views
Related Courses
-
Edge Animate Essential Training
with Chris Converse4h 44m Beginner -
Illustrator CC 2013 One-on-One: Intermediate
with Deke McClelland11h 37m Intermediate
-
Introduction
-
Welcome1m 33s
-
-
1. Getting Started with ActionScript 3.0
-
AS3 language fundamentals7m 44s
-
2. Working in Flash Professional
-
Creating a Flash document4m 17s
-
Building the document class4m 40s
-
Compiling and debugging6m 29s
-
-
3. Working in Flash Builder
-
Creating a class file6m 36s
-
Compiling and debugging6m 2s
-
4. AS3 Language Fundamentals
-
Variables6m 11s
-
Functions5m 30s
-
Events5m 4s
-
Conditionals4m 43s
-
Arrays and vectors4m 7s
-
Loops5m 45s
-
-
5. Working with AS3 Objects
-
MovieClip and Sprite6m 3s
-
TextField and TextFormat5m 6s
-
XML7m 21s
-
JSON6m 52s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Events