Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 20. Events and the Event Flow > Adding and Removing Event Listeners

20.4. Adding and Removing Event Listeners

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


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint