I'm sorry, Steven, that's just not true. Test out the following code:

package
{
        public class A
        {
                public function A()
                {
                        trace("A Constructor");
                }
        }
}

package
{
        public class B extends A
        {
                public function B()
                {
                        trace("B Constructor");
                }
        }
}

and create an instance of B, and you will see:

"A Constructor"
"B Constructor"

in the debug window.

You only explicitly need to specify the super() call to pass arguments
to your superclass's constructor.

(I've _never_ used empty super() calls, and all my code still works -
all my superclass constructors still get called...)

Ian

On Tue, Sep 1, 2009 at 11:56 PM, Steven Sacks<flash...@stevensacks.net> wrote:
> 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

Reply via email to