# Waiting until a tween has finished

**URL:** https://forum.kirupa.com/t/waiting-until-a-tween-has-finished/188013
**Category:** flash
**Created:** [May 3, 2006, 7:49pm UTC](https://forum.kirupa.com/t/waiting-until-a-tween-has-finished/188013 "2006-05-03T19:49:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jimjiminyjimjim](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jimjiminyjimjim](https://forum.kirupa.com/u/jimjiminyjimjim)
#### Post date: [May 3, 2006, 7:49pm UTC](https://forum.kirupa.com/t/waiting-until-a-tween-has-finished/188013/1 "2006-05-03T19:49:24Z")

</div>

I have this bit of actionscript that tweens a movie in position and scale. It then attaches a movie from the library.

```auto

            _root.info._alpha = 100;
  		_root.info.slideTo(20, 100);
		_root.info.window.tween(["_xscale"],[140],1);
		_root.info.hit.tween(["_xscale"],[102],1);
		_root.info.hit.tween(["_x"],[-80],0.5);
		

		_root.info.container.attachMovie(_root.info.brand,_root.info.brand,1);

```

Whats the best way of waiting until the tween is complete before attaching this movie. Basically I want the attached movie to appear once info.\_x == 20.
