Is there a MemberwiseClone() equivalent in ActionScript3?
Is there a MemberwiseClone() equivalent in ActionScript3?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No there’s no direct way to do a deep copy that’s built into the language however if you’re not concerned with the processing over-head and don’t want to deal with writing your own clone method for each object you can use the introspection built into AS3 as described here:
http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/