# Tween Class Question

**URL:** <https://forum.kirupa.com/t/tween-class-question/178426>\
**Category:** Uncategorized\
**Created:** [February 10, 2006, 1:38pm UTC](https://forum.kirupa.com/t/tween-class-question/178426 "2006-02-10T13:38:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LoungeActx](https://avatars.discourse-cdn.com/v4/letter/l/71c47a/32.png) [@LoungeActx](https://forum.kirupa.com/u/LoungeActx)\
**Post date:** [February 10, 2006, 1:38pm UTC](https://forum.kirupa.com/t/tween-class-question/178426/1 "2006-02-10T13:38:31Z")

</div>

I’ve got an animation in which I have used the tween class for some nice movement. I was wondering how it would be possible to time it out? Like how would you go about saying something like: Wait 6 seconds, then tween, wait 6 seconds, then tween, etc…

Here is my code right now:

> import mx.transitions.Tween;  
> import mx.transitions.easing.\*;  
> var xScaleSpalding:Tween = new Tween(spaldingTest\_mc, “\_x”, Strong.easeOut, 0, -300, 1, true);  
> xScaleSpalding.onMotionFinished = function() {  
> var yScaleSpalding:Tween = new Tween(spaldingTest\_mc, “\_y”, Strong.easeOut, 0, -250, 1, true);  
> yScaleSpalding.onMotionFinished = function() {  
> var xScaleSpalding2:Tween = new Tween(spaldingTest\_mc, “\_x”, Strong.easeOut, -300, 0, 1, true);  
> xScaleSpalding2.onMotionFinished = function() {  
> var yScaleSpalding2:Tween = new Tween(spaldingTest\_mc, “\_y”, Strong.easeOut, -250, 0, 1, true);  
> };  
> };  
> };
