- Original Message -
From: David_Stafford [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, February 07, 2007 2:12 AM
Subject: [flexcoders] Returning 'this' from an overridden method?
Please pardon this simple-minded question from an AS3 novice.
My base class often
Hi David,
I to am an AS3 novice. Wrote my first(trivial) action script file about
an hour ago. :)
A couple of ideas. Not sure if they will be of much help to you, but
incase you hadnt considered them already..
. you could return the value returned by the call to super.
ie)
Camera c =
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of David_Stafford
Sent: Tuesday, February 06, 2007 6:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Returning 'this' from an overridden
method?
Please pardon
Of *David_Stafford
*Sent:* Tuesday, February 06, 2007 6:13 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Returning 'this' from an overridden method?
Please pardon this simple-minded question from an AS3 novice.
My base class often returns 'this' from methods which makes it
convenient
11:10 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Returning 'this' from an overridden method?
Nice to know the name of this feature.
Just lately somebody asked me the same question.
He also came from a Java background.
Any chance we will see it in the future?
Cheers,
Ralf
: Wednesday, February 07, 2007 11:10 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Returning 'this' from an overridden
method?
Nice to know the name of this feature.
Just lately somebody asked me the same question.
He also came
Please pardon this simple-minded question from an AS3 novice.
My base class often returns 'this' from methods which makes it
convenient to write code like:
camera.move( 10, 12 ).rotateX( 45 ).rotateY( 90 );
The problem comes when code extends the base class and overrides one
of these
7 matches
Mail list logo