4 Replies Latest reply on Jul 6, 2007 11:09 AM by kglad

    Broadcasting Events with EventDispatcher

    MaxManNH Level 2
      Greetings all,

      I am putting together a game where I have some clickable areas that dispatch events to some movieclips on my stage. When I add the movie clips onto the stage and add each clip to the broadcaster object with addEventListener it works great. However when I add the movieclips to the stage with a for loop the addEventListener doesn't seem to work. The event is being dispatched but the movieclips on stage don't seem to be getting them.

      The for loop that is adding the clips is inside a function that is being called every three seconds by a setInterval call.