4 Replies Latest reply on May 23, 2009 8:45 AM by AttaBoy2

    play multiple movieclips with actionscript 3.0

    Mister Maw

      Hi,

      I have a page which has 3 buttons on it. Each of those buttons activates a different movieclip on the timeline. (each movieclip is

      on its own layer.) I think I am almost there with it because I'm not getting errors in my code (actionscript 3.0), but when I click

      any of these buttons my timeline just plays to the end regardless. Please help


      here is my code..

       

      stop();

       

      btn_1.addEventListener(MouseEvent.CLICK,buttonClicked)

       

      function playMC_one (event:MouseEvent):void

       

      {
          MC_one.play();
      }

       

      btn_2.addEventListener(MouseEvent.CLICK,buttonClicked)

       

      function playMC_two (event:MouseEvent): void

       

      {
          MC_two.play();
      }

       

      btn_3.addEventListener(MouseEvent.CLICK,buttonClicked)

       

      function playMC_three (event:MouseEvent): void

       

      {
           MC_three.play();
      }

       

       

      Glen