Thanks guys, I think i have to go back to the books because even simple code
as the following wont give me the result I am looking for:

Application.as--
class Application {

   public function Application() {
       init();
   }

   public function init() {
       trace("initiation");
   }

}

SubApplication.as --

class SubApplication extends Application {

   function SubApplication() {
       initiate();
   }

   function initiate() {
       super.init();
   }

}

on FLA--
game = new Application;

Output:

Initiation

I was looking to have initiation twice since I am calling it from the main
Class as well as the subClass....

...helmut


On 8/29/06, Johannes Nel <[EMAIL PROTECTED]> wrote:

the compiler adds it if it ain't there

On 8/29/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:
>
> 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
>



--
j:pn
http://www.lennel.org
_______________________________________________
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




--
...helmut
helmutgranda.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