RE: [Flashcoders] AS2, compiler errors...

2005-11-17 Thread Scott Hyndman
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

Re: [Flashcoders] AS2, compiler errors...

2005-11-17 Thread Tim Stickland
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

Re: [Flashcoders] AS2, compiler errors...

2005-11-17 Thread Ian Thomas
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

Re: [Flashcoders] AS2, compiler errors...

2005-11-17 Thread Tim Stickland
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

Re: [Flashcoders] AS2, compiler errors...

2005-11-17 Thread NEILHIGHLEY.COM
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.

Re: [Flashcoders] AS2, compiler errors...

2005-11-17 Thread Tim Stickland
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

Re: [Flashcoders] AS2, compiler errors...

2005-11-17 Thread Gregory_GOusable
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

[Flashcoders] AS2, compiler errors...

2005-11-16 Thread Tim Stickland
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