# I have this thing for tweens

**URL:** https://forum.kirupa.com/t/i-have-this-thing-for-tweens/63104
**Category:** flash
**Created:** [September 2, 2004, 11:48pm UTC](https://forum.kirupa.com/t/i-have-this-thing-for-tweens/63104 "2004-09-02T23:48:31Z")
**Posts on this page:** 3
**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/63104/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);
}

```

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 18, 2004, 8:16pm UTC](https://forum.kirupa.com/t/i-have-this-thing-for-tweens/63104/2 "2004-09-18T20:16:21Z")

</div>

Your movieclip name needs to be a string by enclosing its name with quotes (“ball\_mc”). See if that will help.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 19, 2004, 1:02am UTC](https://forum.kirupa.com/t/i-have-this-thing-for-tweens/63104/3 "2004-09-19T01:02:27Z")

</div>

> [@prototype](#):
>
> Your movieclip name needs to be a string by enclosing its name with quotes (“ball\_mc”). See if that will help.

It was the AS settings in MX 2004, that was the problem.
