You can put code before super(). If you intend to use any super methods 
then you definitely need to call super() beforehand. But if you want to 
call a method of your sub class before super(), it does work.

.. now I don't necessarily agree with doing that, but I guess it depends 
on what you need to accomplish.


Derek Vadneau

----- Original Message ----- 
From: "Steven Sacks | BLITZ" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Wednesday, January 24, 2007 1:52 PM
Subject: RE: [Flashcoders] AS3 properties woes


I don't know about AS3 (and I can't imagine this is different from AS2)
but you cannot put any code before super() in a constructor.

super() must be the first line of code in a constructor.

You should pass the labelClass value to the super constructor (watch
your every move, super constructor).

super("date");

and in your parent

function ClassName(lc:String)
{
labelClass = lc;
}




_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to