Re: [Flashcoders] how to call method in sub-class instace?

2007-06-30 Thread Amir T Rocker
Hi stranger , :) I dont think I quite understand what you need, however i will try anyway. [quote] "How do you get a super-class instance to call an over-riding method in a sub-class" Inheritance assumes that you use a 'general' base class and a 'specialized' subclass. To make sure I underst

Re: [Flashcoders] how to call method in sub-class instace?

2007-06-29 Thread Andrew Sinning
I had a typo in the name of the overriding method in the sub-class! Once I figured that out it worked exactly as explained in by Moock.. Thanks. T. Michael Keesey wrote: On 6/29/07, Andrew Sinning <[EMAIL PROTECTED]> wrote: How do you get a super-class instance to call an over-riding metho

Re: [Flashcoders] how to call method in sub-class instace?

2007-06-29 Thread Mark Winterhalder
On 6/29/07, Andrew Sinning <[EMAIL PROTECTED]> wrote: How do you get a super-class instance to call an over-riding method in a sub-class? I'm using AS2. Hackish, but you could do SubClass.prototype.myMethod.call( this, arg1, arg2...); Anyway, you don't need this, because I think what you're t

Re: [Flashcoders] how to call method in sub-class instace?

2007-06-29 Thread T. Michael Keesey
On 6/29/07, Andrew Sinning <[EMAIL PROTECTED]> wrote: How do you get a super-class instance to call an over-riding method in a sub-class? I'm using AS2. Just call the method. That's it. I recall it being more complicated in Lingo, but in pretty much every other OOP language (Java, C++, AS, et

[Flashcoders] how to call method in sub-class instace?

2007-06-29 Thread Andrew Sinning
How do you get a super-class instance to call an over-riding method in a sub-class? I'm using AS2. I'm parsing data into an object. The parser method is generalized, so it should be in the super-class, I think... But there are exceptions in the sub-classes. The call to start loading the da