# Tween speed?

**URL:** <https://forum.kirupa.com/t/tween-speed/236665>\
**Category:** flash\
**Created:** [August 22, 2007, 5:13pm UTC](https://forum.kirupa.com/t/tween-speed/236665 "2007-08-22T17:13:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lab26](https://avatars.discourse-cdn.com/v4/letter/l/0ea827/32.png) [@Lab26](https://forum.kirupa.com/u/Lab26)\
**Post date:** [August 22, 2007, 5:13pm UTC](https://forum.kirupa.com/t/tween-speed/236665/1 "2007-08-22T17:13:34Z")

</div>

Hey peepz! I’ve got this code for a button; It works, but when I want the tween to go faster, and I change the speed of the tween (red txt) to a numer smaller than 1 - for instance 0.5 - the button works as long as you don’t click it - when you click it it starts flippin’! Anyone any thoughts?

```auto
import fl.transitions.Tween;
import fl.transitions.easing.*;

link_mc.addEventListener(MouseEvent.ROLL_OVER, goOver);
function goOver(event:MouseEvent):void {
	var overPosition = over_mc.y;
	var myTween:Tween = new Tween(over_mc, "y", Strong.easeOut, overPosition, 0, [COLOR="Red"]1[/COLOR], true);
}
link_mc.addEventListener(MouseEvent.ROLL_OUT, goOut);
function goOut(event:MouseEvent):void {
	var overPosition = over_mc.y;
	var myTween:Tween = new Tween(over_mc, "y", Strong.easeOut, overPosition, 48, [COLOR="red"]1[/COLOR], true);
}

```
