The Flex framework uses the $foo nomenclature in some mx_Internal APIs
to indicate that a property or method is a "base" API rather than an
overridden one. But we also mark it final to ensure that it doesn't get
overridden.

 

- Gordon

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Schmalle
Sent: Monday, January 22, 2007 3:40 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: super.super?

 

Hi,

The compiler is thinking that super is a method in the 'super' class.

No, you cannot call super.super in AS3.

You could in a super.super class define

protected function $method():void 
{
   super.method();
   trace(two levels up");
}

override protected function method():void
{
   trace(two levels up override");
}

then in a subclass 2 levels down call

$method();

method();

Anyway, ;-)

Peace, Mike

PS, I have actually used this pattern with viewMetrics() a couple of
times.





On 1/22/07, JWOpitz <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >
wrote:

Hi Gordon, just curious to know if super.super.someMethod() is
supported in AS3. Or was that a typo below?

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, Gordon Smith <[EMAIL PROTECTED]> wrote:
>
> super.super isn't supported in AS2. Can you describe your situation?
Why do
> you need to inherit from a class higher up the inheritance chain,
instead of
> from your superclass?
> 
> - Gordon
> 
> -----Original Message-----
> From: Simon Fifield [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 29, 2005 2:47 PM
> To: [EMAIL PROTECTED] Com
> Subject: [flexcoders] super.super?
> 
> 
> 
> Hi Flexcoders,
> 
> Is it possible to make a call like:
> super.super.layoutChildren();
> The compiler says "There is no such method with the name 'super'."
> 
> Is there another way around?
> 
> 
> 
> Kind Regards,
> 
> Simon Fifield
> 
> Yahoo! Groups Sponsor 
> 
> ADVERTISEMENT
> 
>
<http://us.ard.yahoo.com/SIG=129hv6udk/M=298184.6018725.7038619.3001176/
D=gr
<http://us.ard.yahoo.com/SIG=129hv6udk/M=298184.6018725.7038619.3001176/
D=gr> 
>
oups/S=1705007207:HM/EXP=1112223771/A=2593423/R=0/SIG=11el9gslf/*http://
www.
> netflix.com/Default?mqso=60190075> click here 
> 
>
<http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=group
s/S=
<http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=group
s/S=> 
> :HM/A=2593423/rand=309547265> 
> 
> 
> _____ 
> 
> Yahoo! Groups Links
> 
> 
> * To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
<http://groups.yahoo.com/group/flexcoders/> 
> <http://groups.yahoo.com/group/flexcoders/
<http://groups.yahoo.com/group/flexcoders/> > 
> 
> 
> * To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
<mailto:flexcoders-unsubscribe%40yahoogroups.com> 
> <mailto:[EMAIL PROTECTED]
<mailto:flexcoders-unsubscribe%40yahoogroups.com> ?subject=Unsubscribe> 
> 
> 
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
> <http://docs.yahoo.com/info/terms/ <http://docs.yahoo.com/info/terms/>
> .
>




-- 
Teoti Graphix
http://www.teotigraphix.com <http://www.teotigraphix.com> 

Blog - Flex2Components
http://www.flex2components.com <http://www.flex2components.com> 

You can find more by solving the problem then by 'asking the question'. 

 

Reply via email to