# Restricting the map problem, reverting back to original state on release, and re-pres

**URL:** <https://forum.kirupa.com/t/restricting-the-map-problem-reverting-back-to-original-state-on-release-and-re-pres/110202>\
**Category:** Uncategorized\
**Created:** [May 13, 2004, 9:47am UTC](https://forum.kirupa.com/t/restricting-the-map-problem-reverting-back-to-original-state-on-release-and-re-pres/110202 "2004-05-13T09:47:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trevorsaint](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/trevorsaint/32/268_2.png) [@trevorsaint](https://forum.kirupa.com/u/trevorsaint)\
**Post date:** [May 13, 2004, 9:47am UTC](https://forum.kirupa.com/t/restricting-the-map-problem-reverting-back-to-original-state-on-release-and-re-pres/110202/1 "2004-05-13T09:47:55Z")

</div>

I am trying to restrict the area in which that map can be moved via the drag script, except on release, it reverts back to its original state, so for example, I drag downwards a few pixels, I let go and then press again to move a further few pixels it reverts back :(, Is there a proper method for achieivng this?

```auto

map_mc.onPress = function() {
	this.startDrag(true, 0, 0, 200, 400);
}

map_mc.onRelease = function() {
	this.stopDrag();
}

```

Ah I just removed the true and it works, mmm can anyone please explain this to me? thx
