Why not try it and find out..? I actually don't know about Flash off the top of my head - I suspect it would work (i.e. the overridden function would be called). But it's worth a try.
In some OOP languages (notably C++ when dealing with virtual functions/abstract classes) this causes lots of headaches, purely because you're calling things via the constructor - the fact that the function has been overridden may not be available at that point in the runtime, as the object's virtual function table (an array that points at all the methods that object has) hasn't yet been fully populated. >From memory, Java has a similar problem. (But TBH I doubt I've ever tried it in Java, having learned my lesson in C++). The answer is generally to avoid calling functions from the constructor that might be overridden. But as to Flash - as I said, don't know. :-) Ian On 11/18/05, Andreas Rønning <[EMAIL PROTECTED]> wrote: > > If class A's constructor calls class A's main(), and class A's main() > calls class A's myFunction(), what happens if class B extends A, > overrides myFunction(), and then calls super() ? > Is the overridden myFunction called or the original? > > - Andreas > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

