# Tween classe problemo

**URL:** https://forum.kirupa.com/t/tween-classe-problemo/215344
**Category:** flash
**Created:** [February 6, 2007, 4:12pm UTC](https://forum.kirupa.com/t/tween-classe-problemo/215344 "2007-02-06T16:12:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![m00nz00mer](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@m00nz00mer](https://forum.kirupa.com/u/m00nz00mer)
#### Post date: [February 6, 2007, 4:12pm UTC](https://forum.kirupa.com/t/tween-classe-problemo/215344/1 "2007-02-06T16:12:32Z")

</div>

Hello, not to hot with AS:s. Could someone tell me how to get this to work?

Basically i want the file to goto frame 2 of my main timeline once the tween has finished.

import mx.transitions.Tween;  
import mx.transitions.easing.\*;  
var xPosT:Tween = new Tween(kText, “\_x”, Elastic.easeOut, 0, Stage.width / 2, 1.5, true);  
xScaleT.onMotionFinished = function() {

```
_root.gotoAndStop(2);

```

};

Cheers.
