# Checking to see if the Tween has finished

**URL:** <https://forum.kirupa.com/t/checking-to-see-if-the-tween-has-finished/240053>\
**Category:** flash\
**Created:** [September 28, 2007, 4:15pm UTC](https://forum.kirupa.com/t/checking-to-see-if-the-tween-has-finished/240053 "2007-09-28T16:15:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AJSimpson](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@AJSimpson](https://forum.kirupa.com/u/AJSimpson)\
**Post date:** [September 28, 2007, 4:15pm UTC](https://forum.kirupa.com/t/checking-to-see-if-the-tween-has-finished/240053/1 "2007-09-28T16:15:08Z")

</div>

Hello There, I want to tween one object to the left corner of the screen, and right after it tweens out of the view, I want the second object to come in, but I don’t know how to do that.

Here’s my code:

```auto
_root.changeSlide = function(current) {
  //---------------
  import mx.transitions.Tween;
  import mx.transitions.easing.*;
  
  end_value = 0 - current._x/2;
  _root.slide._y = Stage.height/2;
  _root.slide._x = Stage.width + _root.slide._x/2;
  
    onEnterFrame = function() {
            var myTween = new Tween(_root.logo, "_x", Strong.easeOut, _root.logo._x, end_value, 4, true);
            if (//how to check if the tween finished?) {
var myTween = new Tween(_root.slide, "_x", Strong.easeOut, _root.slide._x, Stage.width/2, 4, true);
            if (//how to check if the tween finished?) {
                   delete this.onEnterFrame
            }
         }
     }
}

```
