# Tween Class Problem?

**URL:** <https://forum.kirupa.com/t/tween-class-problem/264691>\
**Category:** Uncategorized\
**Created:** [June 28, 2008, 8:39pm UTC](https://forum.kirupa.com/t/tween-class-problem/264691 "2008-06-28T20:39:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![frescono](https://avatars.discourse-cdn.com/v4/letter/f/c37758/32.png) [@frescono](https://forum.kirupa.com/u/frescono)\
**Post date:** [June 28, 2008, 8:39pm UTC](https://forum.kirupa.com/t/tween-class-problem/264691/1 "2008-06-28T20:39:50Z")

</div>

AS 2.0

Im not sure why this isnt working… I want the MC to move up then down using one function… but it glitches and jumps all over, not sure why. Any Ideas???

```auto
import mx.transitions.Tween;
import mx.transitions.easing.*;
jump = function () {
 var yMove:Tween = new Tween(blob_mc, "_y", Elastic.easeOut, 400, 300, 2, true);
 yMove.onMotionFinished = function() {
  yMove.continueTo(400,2);
 };
};

```

---

<div class="post-metadata">

**Author:** ![TheCanadian](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@TheCanadian](https://forum.kirupa.com/u/TheCanadian)\
**Post date:** [June 28, 2008, 9:25pm UTC](https://forum.kirupa.com/t/tween-class-problem/264691/2 "2008-06-28T21:25:49Z")

</div>

Works for me.

---

<div class="post-metadata">

**Author:** ![frescono](https://avatars.discourse-cdn.com/v4/letter/f/c37758/32.png) [@frescono](https://forum.kirupa.com/u/frescono)\
**Post date:** [June 28, 2008, 9:47pm UTC](https://forum.kirupa.com/t/tween-class-problem/264691/3 "2008-06-28T21:47:23Z")

</div>

If i try to play it more than once it jumps randomly up and down…

[Here is the File](http://www.cgflix.com/my_game8.fla)

---

<div class="post-metadata">

**Author:** ![TheCanadian](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@TheCanadian](https://forum.kirupa.com/u/TheCanadian)\
**Post date:** [June 28, 2008, 9:55pm UTC](https://forum.kirupa.com/t/tween-class-problem/264691/4 "2008-06-28T21:55:43Z")

</div>

If you call the function before the last tween has finished then the new one will interfere with it since they are both trying to tween the same property of the same object.
