Duplicate Movieclip Flash Action Script Enhanced

 

Hi Guys, finally after a long time i have found some time to update the duplicate process for flash. It was prity strange why even in action script 3 there is no clone method. Any ways i have devised my own strategy for doing that.

To duplicate movieclip objects in flash as3 is realy easy. All you have to do is create a class against a movie clip and instantiate objects of that class and keep adding the objects on to Stage.

In the example attached I have created 3 display objects mcP1,mcP2 and mcP3 also i have associated these objects with 3 classes mcP1.as, mcP2.as and mcP3.as.

Now once this is done when you click on the generate button code randomly creates object of mcP1.as, mcP2.as and mcP3.as class and add them on to the stage.

This will duplicate the objects and perhaps the easiest way to duplicate objects in action script 3 and onwards. Easy !

I hope to will solve your purpose. Looking forward for your feed back. Thank you.

Download Latest Code Here

Working sample can be viewed on the following link.

Image Slide Show enhanced

 Awaiting feed back on this. Thank you

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)