What are Event Listeners?
A flash interface is a busy place. There’s a lot going on – cursors are moving around, buttons and keys are being pressed, the playback head is moving about, time is passing, graphics are appearing and disappearing. Flash happily ignores all of these events unless it is instructed to pay attention..
As a child I would ignore the fact that an alarm clock was ringing next to my bed. I was not inclined to respond to this event. Fortunately, mum instructed me to listen for this event and handle it by carrying out a procedure known as ‘get ready for school NOW!’.
// drag myself out of bed ;
// stagger to bathroom ;
You can create listeners for many different flash events.
Find out more than you ever wanted to know about listeners from Adobe Developer Connection’s Introduction to event handling in ActionScript 3.0.