2 Replies Latest reply on Sep 19, 2006 2:40 AM by B.O.H.R.

    Multiple constructors in a class

    B.O.H.R.
      Is there a possibility to have more than one constructor in a class

      eg the following code generates error:
      package MyPackage
      {
      public dynamic class FirstClass
      {
      public var strA:String;

      public function FirstClass()
      {
      strA= new String("asd");
      }

      public function FirstClass(strX: String)
      {
      strA= strX;
      }
      }
      }