1 Reply Latest reply on May 26, 2007 7:22 PM by kglad

    action script 3 onClipEvent

    Sefdsdf
      i was reading a tutorial for a little game and when ever i try to run it, i get the error " 1087: Syntax error: extra characters found after end of program. onClipEvent (enterFrame) { "

      the code is:

      onClipEvent (enterFrame) {
      if (Key.isDown(Key.LEFT)) {
      _x--;
      }
      if (Key.isDown(Key.RIGHT)) {
      _x++;
      if (Key.isDown(Key.UP)) {
      _y--;
      if (Key.isDown(Key.DOWN)) {
      _y++;
      }

      it seems to work for everyone else. Your help is greatly appreciated.