Creating mc instance

how can i create movieclip instance through as?


targetTimeline.createEmptyMovieClip(“clipName”, depth);

function makeBox(x, y, w, h) {
var box = createEmptyMovieClip(“box”, 1);
box._x = x;
box._y = y;
box.lineStyle(1, 0xffffff);
box.lineTo(w, 0);
box.lineStyle(1, 0xffffff);
box.lineTo(w, h);
box.lineTo(0, h);
box.lineStyle(1, 0xffffff);
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;

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