2 Replies Latest reply on May 24, 2007 1:55 PM by hale2jo

    actionscript 3.0 mouse click event listener works only once

    hale2jo
      I'm a newbie. I'm using actionscript 3.0 and I have a separate package .as file with all my action script code. I have 2 buttons called myBtn1 and myBtn2 in my .fla file whose base class are both flash.display.SimpleButton.
      The event listener for myBtn1 (buttonClickHandler) always fires correctly. But, the eventHandler for myBtn2 (textClickHandler) only fires once and only if myBtn2 is the first button to be clicked. (I realize those event handlers and switch statements look rather silly with only one item each, but I removed code.)
      Why does textClickHandler only seem to work once?
      Any help would be greatly appreciated!