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 data begins in the super-class, but some of the sub-classes might have there own over-riding parser methods. Furthermore, any input values not caught by the parsers of the sub-classes need to get passed back up to the super-class.

Does this make sense? I did this kind of thing all the time with lingo, but since I've been reading Moock I'm trying to write better OOP. This has got to be a pretty common thing to run across.

Thanks!
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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