Re: [flexcoders] how do you call the super's super?

2007-03-01 Thread Anthony Lee

Gordon's suggestion while enlightening isn't that useful since the point of
extension is to not have to touch the super.

Is there no known hack? Is it possible to bolt a new method into a top level
class?

tonio

On 2/27/07, Steve Cox [EMAIL PROTECTED] wrote:


   Could be wrong but I'm 99% sure this is not possible.



Steve



-Original Message-
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Anthony Lee
*Sent:* 27 February 2007 04:00
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] how do you call the super's super?



Hi,

Sorry for the lame AS questions, but can anyone tell me how to call
the super method of the class I'm extending? ie. the grandparent and
not the parent.

Thanks,

tonio

 



RE: [flexcoders] how do you call the super's super?

2007-02-28 Thread Gordon Smith
There is no super.super syntax in AS3. What you want can only be done
indirectly, such as through a scheme like this:
 
class A
{
function foo():void { trace(1); }
}
 
class B extends A
{
function $foo():void { super.foo(); }
override function foo() { trace(2) };
}
 
class C extends B
{
// can call $foo() to execute A's foo()
}
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Anthony Lee
Sent: Monday, February 26, 2007 8:00 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] how do you call the super's super?



Hi,

Sorry for the lame AS questions, but can anyone tell me how to call
the super method of the class I'm extending? ie. the grandparent and
not the parent.

Thanks,

tonio


 


Re: [flexcoders] how do you call the super's super?

2007-02-28 Thread Daniel Freiman

You can't.  I wish you could, but you can't.

- Dan

On 2/26/07, Anthony Lee [EMAIL PROTECTED] wrote:


  Hi,

Sorry for the lame AS questions, but can anyone tell me how to call
the super method of the class I'm extending? ie. the grandparent and
not the parent.

Thanks,

tonio
 



RE: [flexcoders] how do you call the super's super?

2007-02-28 Thread Steve Cox
Could be wrong but I'm 99% sure this is not possible.
 
Steve
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Anthony Lee
Sent: 27 February 2007 04:00
To: flexcoders@yahoogroups.com
Subject: [flexcoders] how do you call the super's super?
 
Hi,

Sorry for the lame AS questions, but can anyone tell me how to call
the super method of the class I'm extending? ie. the grandparent and
not the parent.

Thanks,

tonio
 


[flexcoders] how do you call the super's super?

2007-02-27 Thread Anthony Lee
Hi,

Sorry for the lame AS questions, but can anyone tell me how to call
the super method of the class I'm extending? ie. the grandparent and
not the parent.

Thanks,

tonio