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:

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

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()

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 straightforward.

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 -