You should make sure to call super(); in your subclass constructors,
too.

BLITZ | Steven Sacks - 310-551-0200 x209


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Chris Allen
> Sent: Tuesday, August 29, 2006 2:56 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Class inheritance and scope
> 
> Hi Helmut,
> 
> They don't need to be static at all. In fact if you want to access the
> parent class you can use the key word super. super.myMethodName() for
> example. Take a look at the documentation on that and hopefully that
> gets you pointed in the right direction.
> 
> Good Luck.
> 
> -Chris
> 
> On 8/29/06, Helmut Granda <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I have a class with 3 subclasses. in order for me to access a method
> from
> > any of the subClasses they have to be static (or at least that is
the
> error
> > that the compiler gives me) so i have made my methods static and now
> when i
> > try to access somethig out of those methods flash tells me that
Instance
> > variables cannot be accessed in static functions.
> >
> > Im a bit confused about this. i know that getting an answer from a
> mailing
> > list might not be sufficient to explain the concept but any attempts
are
> > welcome.
> >
> > TIA
> > Helmut
> > _______________________________________________
> > 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
> >
> _______________________________________________
> 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
_______________________________________________
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