0 Replies Latest reply on May 11, 2006 4:19 AM by Z][0

    Overriding Operators

    Z][0
      Hi.
      Is it possible in flash to override math operators like +, -, ...

      for example, make this possible:

      var a oint = new Point(10, 20);
      var b oint = new Point(5, 10);

      var c oint = a + b; // instead of a.add(b);
      trace (c) // trace (15, 30);

      Thanks