duplicateMovieClip with animation (menu)

Hello all,

I am attempting to duplicate a button with a movieClip inside, however I would like the duplicated movieClip to animate to it’s new position. Currently, I have the following script on my button -

Code:

on (release) {duplicateMovieClip(“home”, “home” add 1, 1);home1.targetx = 100;speed = 5;if (home1._x<=200) {home1._x += (home1.targetx-_x)/speed;}}

[font=Courier New][/font]
I am trying to create a menu that will animate from a single button using duplicateClip. Is this something that requires a function?

Thanks,
ChaoticGoodNoImage = NoSigImageNoImage = NoImageRes