# Position-problem

**URL:** <https://forum.kirupa.com/t/position-problem/195024>\
**Category:** flash\
**Created:** [July 27, 2006, 8:48pm UTC](https://forum.kirupa.com/t/position-problem/195024 "2006-07-27T20:48:52Z")\
**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 27, 2006, 8:48pm UTC](https://forum.kirupa.com/t/position-problem/195024/1 "2006-07-27T20:48:52Z")

</div>

Well, this code

> import mx.transitions.Tween;  
> import mx.transitions.easing.\*;

function movon (\_tox) {  
var move1:Tween = new Tween (indhold\_mc, “\_x”, Strong.easeOut, indhold\_mc.\_x, \_tox, 2, true);

}

right.onRelease = function () {  
movon (213.5 );  
};  
left.onRelease = function () {  
movon (237.5);  
};

I used it from at tutorial. How do i do, so when i press the buttons they dont go to chosen position, but +/- to the position the movieclip has at the time?

Thanks in advance!

-JPAG
