Actionscript 3 (Flex) - How do you clone an object including copying the event handlers/listeners?
- by RR
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?