RE: [Flashcoders] Super and this

2007-03-20 Thread Karina Steffens
> > Think of 'Super' as opening a Russian Doll. When you call a > given method, > it's at the current outermost level. When you use Super you > remove a layer > and work with what is nested inside. > I don't know if that helps or not. > > I don't know lingo, but Flash behaves more or less a

Re: [Flashcoders] Super and this

2007-03-19 Thread Ian Thomas
On 3/19/07, Andy Herrman <[EMAIL PROTECTED]> wrote: Oh, I don't even think of 'super' as any kind of identifier/variable. I think of it the same way I think of '.', '[]' or even '->' (in C), in that I think of it as an operator used to access something, not as a reference. 'super.' is just the w

Re: [Flashcoders] Super and this

2007-03-19 Thread Paul Andrews
- Original Message - From: "Danny Kodicek" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; Sent: Monday, March 19, 2007 4:59 PM Subject: RE: [Flashcoders] Super and this > I was simply suggesting that using the right words would make things clearer. Danny

Re: [Flashcoders] Super and this

2007-03-19 Thread Andy Herrman
Oh, I don't even think of 'super' as any kind of identifier/variable. I think of it the same way I think of '.', '[]' or even '->' (in C), in that I think of it as an operator used to access something, not as a reference. 'super.' is just the way to access the parent implementation of a function,

RE: [Flashcoders] Super and this

2007-03-19 Thread Danny Kodicek
> I was simply suggesting that using the right words would make > things clearer. Danny is right in a sense. > Ron > > Karina Steffens wrote: > > Danny, I think what Ron means is, you don't instantiate the class > > _and_ the super class, as you would with Director. > > > > As you know (and for

Re: [Flashcoders] Super and this

2007-03-19 Thread Andy Herrman
t; which I think is pretty cool, a bit like inheritance via composition. > > Actually if you go back to the metaphor, the Chrysler PT Cruiser in Director > would come with a little Chrysler Neon sitting inside it ;) > > Karina > > > > > -Original Message- > > From: Dann

Re: [Flashcoders] Super and this

2007-03-19 Thread Ron Wheeler
Cruiser in Director would come with a little Chrysler Neon sitting inside it ;) Karina -Original Message- From: Danny Kodicek [mailto:[EMAIL PROTECTED] Sent: 19 March 2007 09:39 To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Super and t

Re: [Flashcoders] Super and this

2007-03-19 Thread Dave Mennenoh
Isn't that what 'instantiate' means? By 'instantiate' I mean 'make an instance of'. Correct. Instantiate an instance... now that makes no sense. Dave - Head Developer www.blurredistinction.com Adobe Community Expert http://www.adobe.com/communities/experts/ __

Re: [Flashcoders] Super and this

2007-03-19 Thread Mark Winterhalder
tor way is a lot more flexible - you can generate and swap ancestors on the fly, which I think is pretty cool, a bit like inheritance via composition. Actually if you go back to the metaphor, the Chrysler PT Cruiser in Director would come with a little Chrysler Neon sitting inside it ;) Karina >

RE: [Flashcoders] Super and this

2007-03-19 Thread Karina Steffens
; From: Danny Kodicek [mailto:[EMAIL PROTECTED] > Sent: 19 March 2007 09:39 > To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com > Subject: RE: [Flashcoders] Super and this > > > Just to make your life simpler. > > You do not instantiate a class; you instantiate an > >

Re: [Flashcoders] Super and this

2007-03-19 Thread Paul Andrews
- Original Message - From: "Danny Kodicek" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; Sent: Monday, March 19, 2007 9:38 AM Subject: RE: [Flashcoders] Super and this > Just to make your life simpler. You do not instantiate a class; you instantiate an ins

RE: [Flashcoders] Super and this

2007-03-19 Thread Danny Kodicek
> Just to make your life simpler. > You do not instantiate a class; you instantiate an > instance(object) of a class. Isn't that what 'instantiate' means? By 'instantiate' I mean 'make an instance of'. Danny ___ Flashcoders@chattyfig.figleaf.com To

Re: [Flashcoders] Super and this

2007-03-17 Thread Ron Wheeler
Just to make your life simpler. You do not instantiate a class; you instantiate an instance(object) of a class. A class is only a definition and is stored in Flash as a definition which can be instantiated as many times as required. The definition refers to the definitions of the classes that

RE: [Flashcoders] Super and this

2007-03-16 Thread Danny Kodicek
> So, when you instantiate a class that extends other classes, > there is only one actual object that's created. So `this` > would always return the same object, whether in code written > in A or in B. Makes sense. A much better system than Lingo, which takes a bit of messing with to make it

RE: [Flashcoders] Super and this

2007-03-16 Thread Danny Kodicek
> Yes. LOL - long question, short answer, thanks. Danny ___ 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 Pr

Re: [Flashcoders] Super and this

2007-03-16 Thread Paul Andrews
My question: will the 'this' parameter refer to the same object in the superclass as it does in object A? Yes - Original Message - From: "Danny Kodicek" <[EMAIL PROTECTED]> To: "'Flashcoders mailing list'" Sent: Friday, March 16, 2007 2:48 PM Subject: [Flashcoders] Super and this

Re: [Flashcoders] Super and this

2007-03-16 Thread Andy Herrman
So, when you instantiate a class that extends other classes, there is only one actual object that's created. So `this` would always return the same object, whether in code written in A or in B. super is simply used so that you can reference the parent class's implementation of certain functions

Re: [Flashcoders] Super and this

2007-03-16 Thread T. Michael Keesey
On 3/16/07, Danny Kodicek <[EMAIL PROTECTED]> wrote: Just a quick check, as I'm more used to Director's inheritance model than Flash's! I have an object A which extends B, which in turn extends MovieClip Object B has a method 'fGetElementAt' which returns a movieclip In A, I want to extend this