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. …
- 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
ActionScript 3.0: Working with XMLwith Todd Perkins2h 27m Intermediate
ActionScript 3.0 Projects: Game Developmentwith Todd Perkins5h 38m Intermediate
ActionScript 3.0 in Flex Builder 2.0 Essential Trainingwith Joey Lott12h 46m Intermediate
1. Getting Started with ActionScript 3.0
AS3 language fundamentals7m 44s
2. Working in Flash Professional
3. Working in Flash Builder
4. AS3 Language Fundamentals
5. Working with AS3 Objects
- 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.Cancel
Take 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.