# The Tween class and speed

**URL:** https://forum.kirupa.com/t/the-tween-class-and-speed/263471
**Category:** flash
**Created:** [June 16, 2008, 2:36pm UTC](https://forum.kirupa.com/t/the-tween-class-and-speed/263471 "2008-06-16T14:36:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bergsorensen](https://avatars.discourse-cdn.com/v4/letter/b/b77776/32.png) [@bergsorensen](https://forum.kirupa.com/u/bergsorensen)
#### Post date: [June 16, 2008, 2:36pm UTC](https://forum.kirupa.com/t/the-tween-class-and-speed/263471/1 "2008-06-16T14:36:29Z")

</div>

Im using the Tween class to change alpha of objects… though, setting speed to lowest “1”, the fade transition is rather slow still (with 24fps)

My code is:

import mx.transitions.Tween;  
import mx.transitions.ease.\*;  
// alpha fra start  
test.\_alpha = 0;  
// rollover sæt til 100%  
test.onRollOver = function(){  
var mxTw = new Tween(this,"\_alpha",Strong.easeOut,this.\_alpha,100,1,true);  
}  
// rollout sæt til 0%  
test.onRollOut = function(){  
var mxTw = new Tween(this,"\_alpha",Strong.easeOut,this.\_alpha,0,1,true);  
}  
stop();

Any way to enchance the transition/fade/alpha change speed?

Best regards  
Kasper

---

<div class="post-metadata">

### Author: ![bergsorensen](https://avatars.discourse-cdn.com/v4/letter/b/b77776/32.png) [@bergsorensen](https://forum.kirupa.com/u/bergsorensen)
#### Post date: [June 16, 2008, 3:20pm UTC](https://forum.kirupa.com/t/the-tween-class-and-speed/263471/2 "2008-06-16T15:20:05Z")

</div>

ahh got it … it’s ofcause x.x for speed… and not x,x … Duh !

---

<div class="post-metadata">

### Author: ![bergsorensen](https://avatars.discourse-cdn.com/v4/letter/b/b77776/32.png) [@bergsorensen](https://forum.kirupa.com/u/bergsorensen)
#### Post date: [June 16, 2008, 3:25pm UTC](https://forum.kirupa.com/t/the-tween-class-and-speed/263471/3 "2008-06-16T15:25:26Z")

</div>

x.x and not x,x … duh! 🙂
