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 as most

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-19 Thread Paul Andrews
- Original Message - From: Danny Kodicek [EMAIL PROTECTED] To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com 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

RE: [Flashcoders] Super and this

2007-03-19 Thread Karina Steffens
] 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 instance(object) of a class. Isn't that what 'instantiate' means

Re: [Flashcoders] Super and this

2007-03-19 Thread Mark Winterhalder
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 instance(object) of a class. Isn'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 Ron Wheeler
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 this Just to make your life simpler

Re: [Flashcoders] Super and this

2007-03-19 Thread Andy Herrman
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 this Just to make

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 anyone that

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 Paul Andrews
- Original Message - From: Danny Kodicek [EMAIL PROTECTED] To: [EMAIL PROTECTED]; flashcoders@chattyfig.figleaf.com 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 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 way

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

[Flashcoders] Super and this

2007-03-16 Thread Danny Kodicek
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 by adding some extra code on top: (leaving out

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

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 Paul Andrews
: [Flashcoders] Super and this 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 by adding some extra code

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

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