5 Replies Latest reply on May 30, 2007 1:33 PM by kglad

    AS3 Option Method/Function Arguments

    Rothrock Level 5
      How do I have a function or method with optional arguments? Do I use … (rest) or is there some other way?

      Basically I am doing my own MatrixMath class and I want to have a static method

      MatrixMath.dotProduct(A,B,symmetric):MatrixMath

      Where A and B are instances of a MatrixMath and symmetric is a boolean – true if I know the result of the product will be a symmetric matrix. I would like to only need to pass that argument when I need it, not always.