# Reset

**URL:** https://forum.kirupa.com/t/reset/172215
**Category:** Uncategorized
**Created:** [December 12, 2005, 3:43pm UTC](https://forum.kirupa.com/t/reset/172215 "2005-12-12T15:43:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![XwhyZ](https://avatars.discourse-cdn.com/v4/letter/x/a6a055/32.png) [@XwhyZ](https://forum.kirupa.com/u/XwhyZ)
#### Post date: [December 12, 2005, 3:43pm UTC](https://forum.kirupa.com/t/reset/172215/1 "2005-12-12T15:43:14Z")

</div>

This should be simple but for a newbie:sigh: … Lets say there are 4 mc’s in an array which can be dragged so far ao good , how do I get it to go back(reset) to the original positions(x and y co-ordinates) pressing a button?  
Looks something like this so far…  
var clips:Array = new Array(tree1, tree2, tree3, tree4);  
for (var i = 0; i\<clips.length; i++) {  
clips\*.onPress = function() {  
this.startDrag();  
};  
clips\*.onRelease = function() {  
this.stopDrag();  
};  
}

reset.onPress= function(){  
???  
};
