4 Replies Latest reply on Feb 18, 2011 9:21 AM by Ned Murphy

    Code not working

    HDsuperglide Level 1

      Hi all,


      I have tried the following code, but when I test it, it loops. Can someone please tell me what is wrong? I followed this tutorial on YouTube and they show it working great.


      Frist scene: I have two layers. One layer has the button called BtnWeb_mc, and a separate layer called actions, which the last frame contains the following...




      btnWeb_mc.addEventListener(MouseEvent.CLICK, onClick);
      function onClick (event:MouseEvent)
          gotoAndStop (1, "Web");


      Second scene: Two layers, one contains an image, and the other layer called actions, with a stop(): command on the first frame.


      Why is this looping?


      thank you,