Yes, that is correct.
Scott
-Original Message-
From: [EMAIL PROTECTED] on behalf of Tim Stickland
Sent: Thu 11/17/2005 5:27 PM
To: Flashcoders mailing list
Cc:
Subject:Re: [Flashcoders] AS2, compiler errors...
Absolutely, but I'd never have been trapped as I d
Absolutely, but I'd never have been trapped as I didn't understand
overriding properly ;)
I wasn't aware that when a subclass overrides a superclass method it leaves
the superclass method intact. Is that correct?
On 11/17/05, Ian Thomas <[EMAIL PROTECTED]> wrote:
>
> Not just more readable - co
On 11/17/05, Tim Stickland <[EMAIL PROTECTED]> wrote:
> One thing that I noticed in your example code was that you called methods
> of the parent class using super.method() rather than this.method(). I
> wasn't
> aware you could do that, but it certainly makes reading the code more
> straightforwa
True to form (in my experience anyway), I've just gone in to the classes to
amend them using some of your suggestions and they're now not throwing any
errors... I just don't get it.
One thing that I noticed in your example code was that you called methods
of the parent class using super.method() r
Example .as files:
class GameoverPanel extends UserInteractionPanel {
function GameoverPanel(controller:PanelController, panelObj:Object) {
// Call the super() constructor passing it the panel object.
super(controller,panelObj);//calls the constructor for the base calss
UserInteractionPanel
super.
Hi Greg
Thanks for the reply, but I don't think either of these are the issues.
This is the constructor of UserInteractionPanel:
public function UserInteractionPanel (controller:PanelController,
panelObj:Object) {}
And here's a version of GameoverPanel with all but the constructor removed:
cla
Check the following:
1) class GameoverPanel extends UserInteractionPanel ...
Make sure you have "extends" word
2) To use super(controller, panelObj); , you must have 2 parameters
in the construstor of UserInteractionPanel class.
--
Best regards,
Gregory_GOusable
Hi everyone
I have class compiling issues... I have a class 'UserInteractionPanel'
which is extended by a number of subclasses.
UserInteractionPanel does not reference any other classes.
Each extended class imports a version of the Delegate class (rewritten to
allow arguments to be passed to the
8 matches
Mail list logo