How to use Classes in your Project

Many of the examples that I use in my blog come in the form of an Actionscript 3 “Class” file. Without going into too deep into OOP concepts, I will attempt to explain how to implement an as3 class into your project. The following is a class for our example:

How to dispatch a custom event in Actionscript 3

This is going to be a very simple example of how to dispatch an event. In actionscript 3, you dispatch an event by extending the EventDispatcher class. I’m not going to get into a big complicated explanation right now, but I will show you a couple of simple examples.