# Flash MX: Getting a duplicate to stay put!

**URL:** <https://forum.kirupa.com/t/flash-mx-getting-a-duplicate-to-stay-put/108569>\
**Category:** Uncategorized\
**Created:** [April 26, 2004, 7:18pm UTC](https://forum.kirupa.com/t/flash-mx-getting-a-duplicate-to-stay-put/108569 "2004-04-26T19:18:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TjomasC](https://avatars.discourse-cdn.com/v4/letter/t/9f8e36/32.png) [@TjomasC](https://forum.kirupa.com/u/TjomasC)\
**Post date:** [April 26, 2004, 7:18pm UTC](https://forum.kirupa.com/t/flash-mx-getting-a-duplicate-to-stay-put/108569/1 "2004-04-26T19:18:46Z")

</div>

Ok, Here’s my little problem,

I have a movie clip, that sucessfully duplicates when a button is clicked.

I would like the clip to “stick” to the co-ordinates of the mouse after the click, but it instead it “sticks” to the last click of the mouse then moves to the new co-ordinates on the next click.

This is my code for the “stick” action:

```auto

onClipEvent (mouseUp) {
    n = n + 5;
    this._x = _root._xmouse;
    this._y = _root._ymouse;
    this._rotation = n;
}

```

Ignore the rotation, that was to for me to see if it works

Any suggestions?
