I agree that it would be nice to be able to call super-super-...-methods
but the language simply wasn't designed to allow that. If the upcoming
Ecmascript standard supports it, ActionScript will support it, otherwise
it probably won't.
 
As for hacking classes to do something they weren't compiled to do...
non-dynamic classes are a new feature of AS3 and they do not allow you
to change a compiled method such as updateDisplayList(). This is part of
the performance and security of AS3 vs. AS1 and AS2.
 
Changes to the "prototype object" are still possible, but the framework
does not use prototype-based inheritance, so this wouldn't allow you to
do anything with updateDisplayList().
 
- Gordon

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Anthony Lee
Sent: Thursday, March 01, 2007 6:12 PM
To: [email protected]
Subject: Re: [flexcoders] Re: how do you call the super's super?



> maybe I want to override (and by that I mean NOT run the code in)
> parent.updateDisplayList. But if I override updateDisplayList,
> then at some point in my method I've got to call
super.updateDisplayList
> to get anything to work. But that means I'm going to run all the code
in
> super.updateDisplayList, when in reality I just want to run the code
in
> grandParent.updateDisplayList.

EXACTLY!

Forgive my nativity but is there no way to hack the required
functionality into the super class or something higher that it
inherits from? This kind of thing went on all the time with AS1.

tonio


 

Reply via email to