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
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
- 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
]
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
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
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/
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
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
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
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,
- 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
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
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
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
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
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
: [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
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
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
19 matches
Mail list logo