# Tween Class

**URL:** https://forum.kirupa.com/t/tween-class/306300
**Category:** Uncategorized
**Created:** [March 12, 2010, 3:27pm UTC](https://forum.kirupa.com/t/tween-class/306300 "2010-03-12T15:27:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Gboyes99](https://avatars.discourse-cdn.com/v4/letter/g/cdc98d/32.png) [@Gboyes99](https://forum.kirupa.com/u/Gboyes99)
#### Post date: [March 12, 2010, 3:27pm UTC](https://forum.kirupa.com/t/tween-class/306300/1 "2010-03-12T15:27:03Z")

</div>

Hi there, I’m abit rusty in flash, so any help is much apreciated.

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

var mytween:Tween = new Tween(ball\_mc,"\_x",Strong.easeInOut,-320.10,47.90,5,true);

mytween.onMotionFinished = function() {  
var mytween2:Tween = new Tween(ball\_mc,"\_x",Strong.easeInOut,47.90,-320.10,5,true);  
}  
mytween2.onMotionFinished = function() {  
gotoAndPlay(2);  
}

Can anyone tell me why this doesnt work?

It does the first and second tween but doesnt do the gotoAndPlay function?
