# The Tween Class

**URL:** <https://forum.kirupa.com/t/the-tween-class/178415>\
**Category:** flash\
**Created:** [February 10, 2006, 11:25am UTC](https://forum.kirupa.com/t/the-tween-class/178415 "2006-02-10T11:25:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pensamente](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/pensamente/32/1208_2.png) [@pensamente](https://forum.kirupa.com/u/pensamente)\
**Post date:** [February 10, 2006, 11:25am UTC](https://forum.kirupa.com/t/the-tween-class/178415/1 "2006-02-10T11:25:34Z")

</div>

as simple as it could be… working on the example that i found in [gotoandlearn.com](http://gotoandlearn.com) about The Tween Class

my code goes like so: [AS]stop();  
import mx.transitions.Tween;  
import mx.transitions.easing.\*;  
// BOT ANIMATION  
animStore = function (rotWhere, from, where) {  
var rot:Tween = new mx.transitions.Tween(newStore, “\_rotation”, Bounce.easeOut, this.\_rotation, rotWhere, 1, true);  
var xScale:Tween = new mx.transitions.Tween(newStore, “\_xscale”, Bounce.easeOut, from, where, 1, true);  
var yScale:Tween = new mx.transitions.Tween(newStore, “\_yscale”, Bounce.easeOut, from, where, 1, true);  
};  
newStore.onRollOver = function() {  
if (this.\_rotation \< 300) {  
animStore(360, 100, 130);  
}  
};  
[/AS]

but the object just freaks out, really dunno whats going on in here :q:  
could someone just point me a way out in this dark room 😛  
thx  
am
