Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You've already taken a look at some examples that use addEventDispatcher(). Now I'll go over how listeners are added and removed in more detail. First, the following is the full method signature for addEventListener():
function addEventListener(type:String,
listener:Function,
useCapture:Boolean = false,
priority:int = 0,
useWeakReference:Boolean = false):void