# Mx.transitions.Tween Question

**URL:** <https://forum.kirupa.com/t/mx-transitions-tween-question/172707>\
**Category:** Uncategorized\
**Created:** [December 17, 2005, 12:09am UTC](https://forum.kirupa.com/t/mx-transitions-tween-question/172707 "2005-12-17T00:09:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![heavyD](https://avatars.discourse-cdn.com/v4/letter/h/f17d59/32.png) [@heavyD](https://forum.kirupa.com/u/heavyD)\
**Post date:** [December 17, 2005, 12:09am UTC](https://forum.kirupa.com/t/mx-transitions-tween-question/172707/1 "2005-12-17T00:09:14Z")

</div>

Hi,  
I am hoping someone can help me with this movieclip motion thang. I just need to have this movie clip start where it left off (instead of var begin = 50;) everytime. So when I add this same code in FRAME 2, it will grab the movieclip where it was left and position it somewhere else. Any ideas? Maybe a setting a variable, I dunno.

thanks,  
h

FRAME 1

myButton\_btn.onRelease = function() {  
tweenBall(mx.transitions.easing.Back.easeOut);  
};  
function tweenBall(easeType) {  
var begin = 50;  
var end = 380;  
var time = 20;  
var mc = ball\_mc;  
ballTween = new mx.transitions.Tween(mc, “\_x”, easeType, begin, end, time);  
}
