Creating mc instance

how can i create movieclip instance through as?

thanks
-mad_man

targetTimeline.createEmptyMovieClip(“clipName”, depth);

example#
function makeBox(x, y, w, h) {
var box = createEmptyMovieClip(“box”, 1);
box._x = x;
box._y = y;
box.beginFill(0x999999);
box.lineStyle(1, 0xffffff);
box.lineTo(w, 0);
box.lineStyle(1, 0xffffff);
box.lineTo(w, h);
box.lineTo(0, h);
box.lineStyle(1, 0xffffff);
box.endFill();
return box;
}
mc = makeBox(20, 20, 20, 20);
mc.onPress = function() {
this._x += 10;
};

umm but i wanna create an instance of already exsisting mc. for example i have a movie clip called Running. how would i create instance of that?

Running.duplicateMovieClip(“newName”, depth);

oh ok thanks senocular

umm its not working:

starmov.duplicateMovieClip(“star2”, depth);
_root.star2._x = 23;
_root.star2._y = 24;
_root.star2._visible=true;

i have this inside a button. but wen i click nothing happens.

i changed depth to 1 also. but still didnt work.

EDIT: i got it to work