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 a difference between the two? Is one preferred over the other?