# Help with TweenMax ! onComplete

**URL:** https://forum.kirupa.com/t/help-with-tweenmax-oncomplete/318054
**Category:** Uncategorized
**Created:** [June 9, 2008, 7:49pm UTC](https://forum.kirupa.com/t/help-with-tweenmax-oncomplete/318054 "2008-06-09T19:49:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![thebboydisorder](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@thebboydisorder](https://forum.kirupa.com/u/thebboydisorder)
#### Post date: [June 9, 2008, 7:49pm UTC](https://forum.kirupa.com/t/help-with-tweenmax-oncomplete/318054/1 "2008-06-09T19:49:22Z")

</div>

I would like to go to a certain frame in my timeline after the last tween has finished!

what would the code look like  
i kno it most likely will have a “onComplete”  
somewhere in it most likely

```auto
import gs.TweenMax;

//what elsee?? =[

```

---

<div class="post-metadata">

### Author: ![prg9](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@prg9](https://forum.kirupa.com/u/prg9)
#### Post date: [June 10, 2008, 11:53am UTC](https://forum.kirupa.com/t/help-with-tweenmax-oncomplete/318054/2 "2008-06-10T11:53:46Z")

</div>

[QUOTE=thebboydisorder;2339624]I would like to go to a certain frame in my timeline after the last tween has finished! what would the code look like i kno it most likely will have a “onComplete” somewhere in it most likely[/QUOTE]

Welcome to Kirupa.

There is an example on the TweenMax page under Examples. Read the usage of TweenMax and you will be all set. [http://blog.greensock.com/tweenmaxas2/](http://blog.greensock.com/tweenmaxas2/)

```auto
import gs.TweenMax;
import mx.transitions.easing.Back;
TweenMax.to(clip_mc, 5, {_alpha:50, _x:120, ease:Back.easeOut, delay:2, onComplete:onFinishTween, onCompleteParams:[5, clip_mc]});
function onFinishTween(argument1:Number, argument2:MovieClip):Void {
    trace("The tween has finished! argument1 = " + argument1 + ", and argument2 = " + argument2);
}

```
