Need Help?

Contact us by filling out this form, and an RMI representative will contact you promptly.


Unlocking ActionScript 3 Fluency Events & the Broadcaster
Price:
US$ 49.00
Duration:
2 hrs 34 min with R Blank

Watch a Sample:
Overview of Course

Popups must be enabled to view this sample.
Course Description

Flash is an event-driven language, and events are the glue that bind together our Flash experiences. Whether you need to work with user mouse interaction, know when an XML file has completed, build a loading animation, know when your application enters/exits full-screen -- in short, when you need to use events to do almost anything in Flash -- understanding events is key to achieving fluency in ActionScript 3.

And, of course, events in AS3 are completely and fundamentally different from events in AS2.

While events in AS3 might seem intimidating on first glance (especially if you've become accustomed to writing your button code in AS2 like btn.onPress = function ()...), fortunately, events in AS3 are incredibly consistent as well as powerful. Once you know how to work with one event, you can work with any event anywhere in the language!

However, there are some real limitations that you encounter when working with Events in AS3 -- and these limitations impinge on our ability to freely store data in our events, and freely transmit these events throughout the Display List.

This course walks you through these limitations, one by one. For each, we discuss the limitation, how it can impact our code, and ways to circumvent the limitation. We then conclude with a discussion and description of the Event Broadcaster, which is a popular construct to circumvent all of the limitations of the native Flash event flow, expanding the ways in which you can work with events in Flash.

And while events are the glue that bind our Flash together, it is incredibly difficult to find books, lessons or tutorials on these specific issues. Which is why we assembled this course.

Part 1 of the course is a 'cookbook'-style exploration of how to work with a wide variety events in ActionScript 3, including many separate lesson files, each illustrating a single concept. Part 2 of the course is a more advanced, project-based exploration of events in AS3, as we build an XML-powered image gallery with an AS3 Event Broadcaster.



Who is this course for?
This course is for users of Flash CS3 or CS4, who feel that they have a basic grasp of the ActionScript 3 language, but want to understand the nature, role and detailed behaviors of events in AS3. This course is also useful for those who feel they have a good grasp of events, but now want to take that skill to the next level by learning how to use and work with custom events and an event broadcaster.




  • Understanding and Working with Events
    • Introduction
    • Event Fundamentals
      • What is an Event?
      • Basic Event Handling (addEventListener)
      • Handling More Types of Events
    • Events on the Display List
      • Understanding the Three Phases of an Event
      • mouseChildren
      • ROLL_OVER vs. MOUSE_OVER
      • Know Where To Listen
    • Intermediate Event Handling
      • Priority
      • Weak References
      • Cancelability
      • Default Behaviors
      • Dispatching Your Own Events (dispatchEvent())
  • Extending Events with an Event Broadcaster
    • Limitations of Native Events
      • Data Handling
      • Display List Dependence
      • Constructor Timing Silence
    • Extending Events: Circumventing Native Limitations
      • Using Custom Events
      • Using an Event Broadcaster