# Tweenclass question

**URL:** <https://forum.kirupa.com/t/tweenclass-question/234083>\
**Category:** Uncategorized\
**Created:** [July 30, 2007, 1:56pm UTC](https://forum.kirupa.com/t/tweenclass-question/234083 "2007-07-30T13:56:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jibble](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jibble/32/2265_2.png) [@jibble](https://forum.kirupa.com/u/jibble)\
**Post date:** [July 30, 2007, 1:56pm UTC](https://forum.kirupa.com/t/tweenclass-question/234083/1 "2007-07-30T13:56:28Z")

</div>

so im using tweenclass for an image. It’s like this…the image has 4 points on it that i need to center on the stage whenever you rollover its corresponding button. I want it to go from spot to spot, NOT from an origin. Here is what im using for the rollovers…

import mx.transitions.Tween;  
import mx.transitions.easing.\*;  
stop();  
this.btn\_1.onRollOver = function () {  
btn\_1.\_parent.gotoAndPlay(“OVER”);  
var myTween:Tween = new Tween(\_root.pic,"\_x",Strong.easeInOut, \_x, -100, 2, true);  
var myTween:Tween = new Tween(\_root.pic,"\_y",Strong.easeInOut, \_y, -100, 2, true);  
}

obviously the \_x after the ease is whats wrong. It starts from the same point all the time and i want it to start from whatever point its on…make sense?
