LocalConnection just send/receive simples objects, and you can't send/receive a specific typed Event object. You can just replace your " localConnectionHandler(callBackEvent:CairngormEvent)" to " localConnectionHandler(callBackEvent:Object)" and apply a "class casting" to ensure the type inside your function.
regards. --- *Mario de Souza* UI Developer Website: www.vizexplorer.com <http://www.vizexplorer.com/> Level 3, 54-56 Cambridge Terrace PO Box 19204, Wellington 6149 *The information contained in this email may be private and/or confidential. It has been sent for the sole use of the intended recipient(s). If the reader of this message is not an intended recipient, you are hereby notified that any unauthorized review, use, disclosure, dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please contact the sender by reply email and destroy all copies of the original message.* On 9 July 2015 at 05:24, mark goldin <[email protected]> wrote: > 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 >
