Home > adobe air > Learning Employee Directory 5.2 event clone

Learning Employee Directory 5.2 event clone

February 22nd, 2008

Return to table of contents
ED’s custom events don’t override the clone() method: it doesn’t need because the events are never redispatched. When I test one of my applications I kept getting the following error:

Error #1034: Type Coercion failed: cannot convert flash.events::Event@141cb29 to org.mymvc.MyMVCEvent

It took me quite a while to debug and finally I have to google it. It seems I am not the only one who has the same problem. The trick here is you will have to override the clone() method in your custom events.

And here is a useful link:
http://www.asserttrue.com/articles/2006/10/14/custom-events-in-actionscript-3-0

Author: Xu Cui Categories: adobe air Tags:
  1. No comments yet.
CAPTCHA Image