3 Replies Latest reply on Nov 28, 2011 6:01 PM by robdillon

    Basic AS question

    media kat Level 1

      Using Flash code snippets in CS5.5, why does it sometimes write:

       

      (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame);

       

      and other times it adds a frame # such as

       

       

      (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_2);

       

      the complete code is below:

       

       

       

      btn_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame);

       

       

      function fl_ClickToGoToAndStopAtFrame(event:MouseEvent):void

      {

                gotoAndStop(10);

      }

       

       

       

      btn_2.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_2);

       

       

      function fl_ClickToGoToAndStopAtFrame_2(event:MouseEvent):void

      {

                gotoAndStop(20);

      }