I need to send an event object to my localConnectionHandler. Something like
this:
conn.send("AlarmManagementConnection", "localConnectionHandler",
_event.callBackEvent);
where _event.callBackEvent is an event that extends CairngormEvent event.
public function localConnectionHandler(callBackEvent:CairngormEvent):void

But I am getting the following error:
Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095:
flash.net.LocalConnection was unable to invoke callback
localConnectionHandler. error=TypeError: Error #1034: Type Coercion failed:
cannot convert Object@116605f9 to
com.adobe.cairngorm.control.CairngormEvent.

Any idea what I am doing wrong?

Thanks

Reply via email to