Actionscript 3 (Flex) - How do you clone an object including copying the event handlers/listeners?

Posted by RR on Stack Overflow See other posts from Stack Overflow or by RR
Published on 2010-04-15T20:06:00Z Indexed on 2010/04/29 16:37 UTC
Read the original article Hit count: 167

I want to clone an object of a class (whose source code I do not have) and copy all of the associated event handlers from the original object to the new cloned object. Does anyone know how I can do that? I know how to copy the properties from the original to the new, but can I iterate over all the event handlers and add them to the new object?

Any ideas?

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about flex