2 Replies Latest reply on Aug 24, 2011 1:34 PM by swydell$$

    movie doesn't test in as3 for button

    swydell$$ Level 1

      I created a button symbol on the bottom layer, then added action script code in the first frame on the top layer. Clicked 'test movie' so that I could click the button to generate the code:

      my_btn.addEventListener(MouseEvent.CLICK, onClick);
      
      function onClick(e:MouseEvent):void
      {
           trace("The event handler works!");
      }

      The movie won't test. How would I fix this to work.