Are you talking about something like this??
package {
public class ClassA {
public function ClassA():void {
trace("ClassA ::: CONSTRUCTOR");
}
}
}
package {
public class ClassB extends ClassA {
public function ClassB():void {
trace("ClassB ::: CONSTRUCTOR");
}
}
}
// in fla
var b:ClassB = new ClassB();
// output
ClassA ::: CONSTRUCTOR
ClassB ::: CONSTRUCTOR
There's no need to call super() in the constructor.
Or are you talking about something else?
regards,
Muzak
----- Original Message -----
From: "Steven Sacks" <flash...@stevensacks.net>
To: "Flash Coders List" <flashcoders@chattyfig.figleaf.com>
Sent: Wednesday, September 02, 2009 12:56 AM
Subject: Re: [Flashcoders] Problem understanding Class heirarchy issue
In AS2, super() was called automatically (so to speak), so calling it was a
matter of proper form more than anything else. In AS3, you have to call it
yourself or it doesn't get called.
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders