# I have this thing for tweens

**URL:** https://forum.kirupa.com/t/i-have-this-thing-for-tweens/121456
**Category:** Uncategorized
**Created:** [September 2, 2004, 11:48pm UTC](https://forum.kirupa.com/t/i-have-this-thing-for-tweens/121456 "2004-09-02T23:48:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![cki](https://avatars.discourse-cdn.com/v4/letter/c/85f322/32.png) [@cki](https://forum.kirupa.com/u/cki)
#### Post date: [September 2, 2004, 11:48pm UTC](https://forum.kirupa.com/t/i-have-this-thing-for-tweens/121456/1 "2004-09-02T23:48:31Z")

</div>

Hi,

I’ve attempted using the new tween class in AS 2.0, but have hit a snag. Can someone look over the attached code offering a solution.

```auto

myButton_btn.onRelease = function() {
	tweenBall();
};
function tweenBall() {
	easeType = mx.transitions.easing.Bounce.easeOut;
	var begin = 20;
	var end = 380;
	var time = .5;
	var mc = ball_mc;
	ballTween = new mx.transitions.Tween(mc, " _x ", easeType, begin, end, time, true);
}

```
