EventManager 1.3

Dennin Dalke, a Brazillian Flash Developer emailed me a great method for the AS3 EventManager class (read the original post).

//adding multiple events at once.
EventManager.addEventListeners( loader.contentLoaderInfo, [
ProgressEvent.PROGRESS,    onSiteLoad_Progress,
Event.OPEN,                onSiteLoad_Open,
Event.COMPLETE,            onSiteLoad_Complete,
IOErrorEvent.IO_ERROR,    onSiteLoad_IOError
] );

It’s a great method to save retyping so many lines.

Get the updated class here. Also, if you have, are, or planning to use the class I would love to know how!

2 thoughts on “EventManager 1.3”

Leave a Reply

Your email address will not be published.