5 Replies Latest reply on Nov 1, 2006 8:38 AM by Star_Tail_Pro

    problem with "/:trigger"

    N.H.L.
      I got some troubles with AS1.0 (player 6) which I want to convert to AS2.0 with flash player 8.0.

      The errors i get is right here, who can help me convert it to AS2.0?

      **Error** Symbol=script, layer=script, frame=2:Line 2: Unexpected '/' encountered
      /:trigger = Number(/:trigger)+Number(/:trigger);

      **Error** Symbol=script, layer=script, frame=2:Line 3: Unexpected '/' encountered
      if (Number(/:trigger)>100) {

      **Error** Symbol=script, layer=script, frame=2:Line 4: Unexpected '/' encountered
      /:trigger = "100";

      **Error** Symbol=script, layer=script, frame=2:Line 5: Unexpected '}' encountered
      } else if (Number(/:trigger)<Number(-100)) {

      **Error** Symbol=script, layer=script, frame=2:Line 6: Operator '/' must be followed by an operand
      /:trigger = "-100";

      **Error** Symbol=script, layer=script, frame=2:Line 7: Unexpected '}' encountered
      }

      Attach Code