DuplicateMovieClip

How can i duplicate a movie clip, with the location of my cursor at mousedown? This is what i have done, but with this code i am duplicating clips at a expodential rate.

In my movieclip square i inputed this code

onClipEvent (mouseDown){
_root.i = _root.i+1;
duplicateMovieClip(square, “square” + _root.i, _root.i);
this._x = _root._xmouse;
this._y = _root._ymouse;
}

:hangover: :woj:

onClipEvent(load){
i=0
}
onClipEvent(mouseDown){
i++
this.duplicateMovieClip(“mc”+i,i)
_root[“mc”+i]._x=_root._xmouse
_root[“mc”+i]._y=_root._ymouse

}

is that it?

well its very close … but for some reason every two clicks i make, one movie clips (the last one) move to the cursor coor. so after a while i get like 20 squared moving at my cursor when i click. Normal?

:woj: