- Home
- Articles
- Best Practices
- ActionScript 3.0 Best Practices: Using the EventCollector Class

Pascal ECHEMANN
I'm an ActionScript developer in the French Riviera.I've created the Swing Package for ActionScript 3.0 (SPAS 3.0) which helps Flash developers to easily create RIAs with the Flash Platform and both Flash and Flex:
http://www.flashapi.org/ View all articles by Pascal ECHEMANN
SPAS 3.0 EventCollector class
1) Introduction
A few weeks ago, I worked on a project based on the Youtube AS3 API and I was really surprised how Flash developers still have concerns with event management.
When I started the migration from SPAS 2.0 to SPAS 3.0, in 2006, one of the first classes I created was the EventCollector class. This class has been especially designed to solve these problems. So I have decided to share it within an autonomous package, even if it is still a core part of the SPAS 3.0 API. That means the EventCollector class is now compatible with Flash, Flex (Flash Builder and Flex SDK) and all of the available ActionScript 3.0 APIs and projects on the Web.
2) Requirements
In order to go through this tutorial, we assume that you have an ActionScript 3.0 environment set-up and that you are familiar with the basic concepts of event handling.
User level:
Beginning.Prerequisite knowledge:
- Experience in developing ActionScript OOP applications.
- Experience in using SWC ActionScript libraries.
- Experience in using an ActionScript 3.0 objects profiler is a plus but not necessary.
Products:
- You can download the collector API from the SPAS 3.0 Website: http://www.flashapi.org/ >> Download (select "More downloads")
- You can download trial ActionScript 3.0 environments from the Adobe Website: http://www.adobe.com/
- You can download a free ActionScript 3.0 environments from the FlashDevelop Website: http://www.flashdevelop.org/

