Thanks for pointing out that document Francis... I see there is a lot more information under the same domain to look at.
Full Address: http://livedocs.adobe.com/specs/actionscript/3/wwhelp/wwhimpl/js/html/wwhelp.htm On 1/14/08, Francis Cheng <[EMAIL PROTECTED]> wrote: > > You are correct. This is explicitly mentioned in the AS3 Language > Specification: > > http://livedocs.adobe.com/specs/actionscript/3/as3_specification131.html > > See the "money" quote in the last line of the paragraph: > > 14.11 New expressions > > A new expression results in the invocation of the intrinsic construct > method of the value computed by the expression that follows the new > keyword. Arguments, if specified, are passed to the construct method. If > no arguments are specified, the parentheses may be omitted. > > Francis Cheng | Senior Technical Writer | Adobe Systems Incorporated > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Juan > Pablo Califano > Sent: Monday, January 14, 2008 3:11 PM > To: Flash Coders List > Subject: Re: [Flashcoders] Classes added > > ... > > If I'm not mistaken, these are equivalent. > > var mySprite:Sprite = new Sprite(); > var mySprite:Sprite = new Sprite; > > However, if you don't use the parenthesis, you can't pass parameters to > the > constructor. > > Cheers. > Juan Pablo Califano > > > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- ...helmut _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders