5 Replies Latest reply on Jun 21, 2006 3:27 PM by Newsgroup_User

    error in 8 that wasent there in 5

    turnerpro1
      I have a bit a code that used to work in 5 that will not work in 8. The script looks like so:

      on (release) {
      _root.gotoAndPlay("Scene_", add String(this_scene_number-1));
      }

      The errors im getting are:

      **Error** Scene=Scene 1, layer=back button, frame=1:Line 2: ')' or ',' expected
      _root.gotoAndPlay("Scene_", add String(this_scene_number-1));

      **Error** Scene=Scene 1, layer=back button, frame=1:Line 3: Unexpected '}' encountered
      }

      Total ActionScript Errors: 2 Reported Errors: 2

      Any help is appreciated.
      Thanks,
      Stephen