# Position-button problem

**URL:** https://forum.kirupa.com/t/position-button-problem/195198
**Category:** flash
**Created:** [July 29, 2006, 3:44pm UTC](https://forum.kirupa.com/t/position-button-problem/195198 "2006-07-29T15:44:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![JPAG](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@JPAG](https://forum.kirupa.com/u/JPAG)
#### Post date: [July 29, 2006, 3:44pm UTC](https://forum.kirupa.com/t/position-button-problem/195198/1 "2006-07-29T15:44:50Z")

</div>

This should be it (for this website), hopefully.

In this code (I guess you recognize it, Scotty?):

```auto

function movon (_tox) {
    var move1:Tween = new Tween (indhold_mc, "_x", Strong.easeOut, indhold_mc._x, _tox, 2, true);
   
}

right_btn.onRelease = function (){
movon (indhold_mc._x - 250)
};

left_btn.onPress = function() {
    var tx = indhold_mc._x+250;
    tx< -77.8 ? movon(tx) : null;
};

```

How do i create, so it doesnt make any difference if i press twice? Cause in this case, the position of the “indhold\_mc” will change depending if you press once or twice.

Thanks in advance

-JPAG
