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
Change your implementation method to something like.
public override function execute(event:Event):void
{
if( event is LoginEvent )
{
var loginEvent : LoginEvent = event as LoginEvent;
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
3 matches
Mail list logo