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!

Published: May 22nd, 2009 at 20:02
Categories: Other