# Weird Problem with Tween Class

**URL:** <https://forum.kirupa.com/t/weird-problem-with-tween-class/195887>\
**Category:** flash\
**Created:** [August 3, 2006, 8:38pm UTC](https://forum.kirupa.com/t/weird-problem-with-tween-class/195887 "2006-08-03T20:38:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![asj](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@asj](https://forum.kirupa.com/u/asj)\
**Post date:** [August 3, 2006, 8:38pm UTC](https://forum.kirupa.com/t/weird-problem-with-tween-class/195887/1 "2006-08-03T20:38:02Z")

</div>

I’m have been testing some ideas for buttons for a site i’m working on…

I have the tween working great, but I am getting a weird pop at the end.

The AS is:

```auto

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

btn_pals.onRollOver = over;
btn_pals.onRollOut = out;
btn_theater.onRollOver = over;
btn_theater.onRollOut = out;
btn_tools.onRollOver = over;
btn_tools.onRollOut = out;
btn_creed.onRollOver = over;
btn_creed.onRollOut = out;
btn_contests.onRollOver = over;
btn_contests.onRollOut = out;

function over()
{
	 var xgrow:Object = new Tween(this, "_xscale", Elastic.easeOut, this._xscale, 125, 1, true);
	 var ygrow:Object = new Tween(this, "_yscale", Elastic.easeOut, this._yscale, 125, 1, true);
	 var xgrow2:Object = new Tween(this.link, "_xscale", Elastic.easeOut, this._xscale, 175, 2, true);
	 var ygrow2:Object = new Tween(this.link, "_yscale", Elastic.easeOut, this._yscale, 175, 2, true);
}

function out()
{
	 var xgrow3:Object = new Tween(this, "_xscale", Elastic.easeOut, this._xscale, 100, 1, true);
	 var ygrow3:Object = new Tween(this, "_yscale", Elastic.easeOut, this._yscale, 100, 1, true);
	 var xgrow4:Object = new Tween(this.link, "_xscale", Elastic.easeOut, this._xscale, 100, 1, true);
	 var ygrow4:Object = new Tween(this.link, "_yscale", Elastic.easeOut, this._yscale, 100, 1, true);
}

```

Here is the swf:  
[SWF](http://www.kidswealthclub.com/v2/swf/club_main.swf)

If someone can tell me what is going on, please explain. Thanks so much in advance.
