8 Replies Latest reply on Mar 21, 2011 10:48 AM by Ned Murphy

    Adding scene to a button

    iPixelen

      Hi, I want to trigger a scene to play (well, stop technically) when the play game button is clicked but I keep getting error messages. This is the code I'm using:

       

      play_btn.addEventListener(MouseEvent.CLICK, playgame);
      function playgame(event:MouseEvent):void{
             gotoAndStop("roomescape");
      };

       

      Can anyone see what I'm doing wrong? Please describe in basic terms if so!