# Using Tween class with a moving target

**URL:** https://forum.kirupa.com/t/using-tween-class-with-a-moving-target/281954
**Category:** flash
**Created:** [February 16, 2009, 2:58am UTC](https://forum.kirupa.com/t/using-tween-class-with-a-moving-target/281954 "2009-02-16T02:58:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dandylion13](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dandylion13](https://forum.kirupa.com/u/dandylion13)
#### Post date: [February 16, 2009, 2:58am UTC](https://forum.kirupa.com/t/using-tween-class-with-a-moving-target/281954/1 "2009-02-16T02:58:39Z")

</div>

Hello!

Does anyone know whether it is possible to create a Tween object where the **finish** property is based on a changing variable?

\_tween = new Tween(object, “x”, Regular.easeInOut, object.x, **movingTarget.x** , 60, false);

The idea is that finish position could be updated with each frame so that the object changes direction in the middle of the tween.

I don’t know if this is possible (or even desirable) but if it is, I’d really appreciate some advice as to where to go to look for more information on how this might done.

Thank you! 🙂

PS: I’m aware of other easing strategies that don’t use the Tween class… just wondering about how to do it with Tween at the moment.
