Is () requested for invoking a Flex ActionScript constructor?

Posted by Steve Kuo on Stack Overflow See other posts from Stack Overflow or by Steve Kuo
Published on 2010-03-16T19:00:13Z Indexed on 2010/03/16 19:01 UTC
Read the original article Hit count: 144

Filed under:
|

In Flex ActionScript, a new object can be instantiated via the parameterless constructor with or without (). Example:

var array:ArrayCollection = new ArrayCollection()

or

var array:ArrayCollection = new ArrayCollection

Is there are difference between these two? Is one preferred over the other?

© Stack Overflow or respective owner

Related posts about flex

Related posts about actionscript