# Reset Dragged Clips - new problem - please help

**URL:** <https://forum.kirupa.com/t/reset-dragged-clips-new-problem-please-help/184584>\
**Category:** flash\
**Created:** [April 6, 2006, 1:38am UTC](https://forum.kirupa.com/t/reset-dragged-clips-new-problem-please-help/184584 "2006-04-06T01:38:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brisa](https://avatars.discourse-cdn.com/v4/letter/b/c89c15/32.png) [@Brisa](https://forum.kirupa.com/u/Brisa)\
**Post date:** [April 6, 2006, 1:38am UTC](https://forum.kirupa.com/t/reset-dragged-clips-new-problem-please-help/184584/1 "2006-04-06T01:38:02Z")

</div>

I have this to initialize my clips:

```auto
function initializeItem(obj) {
    obj.startx = obj._x;
    obj.starty = obj._y;
    obj.returnFlag = false;    
}

```

but If I code a button to reset the clips using:

```auto
resetBTN.onRelease = function{
obj._x=obj.startx ;
    obj._y=obj.starty;
}

```

it doesn’t put them back where they were before they were dragged and dropped on the target clips.

Everything else is working fine, but I tried different combinations to reset the clips and nothing happens.

Any lights?? The file is still the one in the original post, with the correction marked by Macaroni ( thanks again!!)

I’m posting this part in a new post, because the old one is marked as closed and I can’t edit it:(

Thanks!

Brisa

This post is to be closed!! Macaroni Ted helped me and I’m so happy:))
