All posts in managers

Filters Manager in AS3 (BitmapEffects Manager) or how to add, remove and modify a filter from a DisplayObject

First of all, to understand the need of a centralized manager for filters in flash, we need to understand how filters are set on a DisplayObject. To set a filter, we first need to create a BitmapFilter object : [sourcecode language=’as3′] // create a new blur filter var blur:BlurFilter = new BlurFilter(4.0, 4.0, 1); [/sourcecode] […]

Events centralization – Centralized Event Management

What for ? Events centralization allows to listen for events of an object that we don’t have direct access to. Example We have a button in a MovieClip that is not directly connected to your main MovieClip or class where you want to keep all the events logic. There are many ways to get the […]

The importance of the clone() function/method when creating a custom Event class

I know, this is not a big thing but it can save a lot of “after-work” when you just know that it can be really useful and save you a lot of time. I say “after-work” because I understood its importance after I thought I had finished a Loaders management class. I had to rewrite […]

Events manager AS3 classes

Basic Events manager classes. Remove all events, group events, suspend and resume events… Features Keep track of all events added and removed with this manager. Add listener. Remove listener. Add a listener to one or more groups. Suspsend a listener and/or a group of listeners without removing them. Resume a listener and/or a group of […]