Can anyone tell me how to duplicate a MovieClip in ActionScript 3 in Flash CS4?
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.
If you mean you want to duplicate a movie clip in the Flash CS4 IDE, it is really trivial, simply right click on the movie clip either in the library or on the stage and select Duplicate. That will create another movie clip in the library which is identical to the one you have. If you only want to have more than one of the same movie clip, you can ctrl click + drag or simply drop the same movie clip more then once from the library to the stage.
On the other hand, if you want to duplicate a movie clip in code, then follow the tutorial on this website: http://www.smithmediafusion.com/blog/?p=446
The tutorial is for CS3, but it is 99% similar in CS4:
If you want an actual way to recreate the depcrecated function duplicateMovieClip from AS2 refer to this forum post: http://www.kirupa.com/forum/showthread.php?p=1939827