Re: [flexcoders] Polymorphism help

2008-01-09 Thread Alger Werft
When overriding a method, the signature must be the same. That includes the exact parameter types. Alger Nathan Arizona schrieb: > > I am passing in a custom event that extends Event into a class that > implements an interface. I get an incorrect signature and I am > wondering why? Why do I not

RE: [flexcoders] Polymorphism help

2008-01-09 Thread Brian Holmes
Change your implementation method to something like. public override function execute(event:Event):void { if( event is LoginEvent ) { var loginEvent : LoginEvent = event as LoginEvent;