13 Replies Latest reply: Aug 24, 2009 12:27 PM by TLCMediaDesign RSS

    Button does not work

    TLCMediaDesign Community Member

      I have modified the Video Showcase example from Dan Carr. I modified it to show up to 20 different videos. The first 10 buttons are displayed in the first frame and the second 10 buttons displayed in the second frame. I added a "more videos (more_btn)" button to toggle between frames using this code:

       

      function playMovie(event:MouseEvent):void
      {
      if (currentFrame == 1 ){
        play();
      }
        else
      {
        gotoAndStop(1);
      }
      }
      more_btn.addEventListener(MouseEvent.CLICK, playMovie);

       

      The code works in a files that only contains the button and 2 frames, but does nothing when used in the Showcase example. It is the only Button type.

       

      Any ideas? TIA