3 Replies Latest reply on Oct 4, 2007 11:23 PM by kglad

    Remove Event Listeners (at the right time)

    jba101
      I have a app which loads multiple flv's, I also have a timer (digial) which shows how long the movie has been played for. The problem is that whenever i load and new move (through the same "loadVideos()" function, the timer variables ("lagTime", "endTime") are not reset (even though the correct variables are being passed. I believe it has something to do with the event listeners which are being used to load the movies. How can i clear all the listerner before reloading the movies?

      Here is a code snippet:


      Thanks in advance