6 Replies Latest reply on May 2, 2008 9:41 AM by dsdsdsdsd

    question about UIObject.as  createClassObject

    dsdsdsdsd Level 1
      hello;

      I am reading through UIObject.as, specifically createClassObject();


      function createClassObject( ... ):UIObject
      {
      ...
      var o:UIObject = UIObject( createObject ( ... ) ) ;
      ...
      }

      several things about that line that I do not understand:
      1 - is UIObject(...)
      1A - a call to the constructor function OR
      1B - an attempt to instantiate a new instance of, well, itself?

      if 1A is true, how can the call send any params when the constructor does not take any
      quote:


      //constructor function
      function UIObject ( )
      { ...
      }



      if 1B is true, shouldn't there be a 'new' statement, eg new UIObject(...)