2 Replies Latest reply on Apr 2, 2008 11:59 AM by Borrick

    Buttons and Action scripts

    boowwet
      I created button with this action script but it does not work:

      on(press){
      gotoAndPlay("scene 2",1);
      }

      The following error message kept on appearing:

      **Error** Symbol=Symbol 9, layer=Layer 1, frame=1:Line 1: ')' or ',' expected
      gotoAndStop(scene 2);

      Total ActionScript Errors: 1 Reported Errors: 1

      I tried removing and interchanging the " marks with ' and placing them between scene and frame numbers but more error reports appear. Whats wrong?