RE: [flexcoders] Polymorphism....?

2008-02-19 Thread Mike Krotscheck
UIComponent doesn't have a property called isClosed, therefore your attempt to access that property on an instance cast to UIComponent will throw an error. What you need to do is have each class implement an interface called IClosable or something along those lines, and cast to that. public

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;

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 get