# \[CS3/F8\]AS2 Stopping a tween from moving

**URL:** <https://forum.kirupa.com/t/cs3-f8-as2-stopping-a-tween-from-moving/260343>\
**Category:** Uncategorized\
**Created:** [May 14, 2008, 4:12pm UTC](https://forum.kirupa.com/t/cs3-f8-as2-stopping-a-tween-from-moving/260343 "2008-05-14T16:12:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daky](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@Daky](https://forum.kirupa.com/u/Daky)\
**Post date:** [May 14, 2008, 4:12pm UTC](https://forum.kirupa.com/t/cs3-f8-as2-stopping-a-tween-from-moving/260343/1 "2008-05-14T16:12:48Z")

</div>

Hi all, I have a yellow square that i am tweening along the x axis using the .tween class, however this animation starts as soon as the frame is loaded, i have tried several ways to make it start at a stationary position yet to no avail.  
The play control works so far and it does loop the animation like i want it to yet i just want the square to start at a stop.  
I also need a working stop button as i can only make it pause curently.  
I have uploaded a working .zip file with the examples save in CS3 and F8 formats any help is appreciated greatly.

Regards,

Rich.

---

<div class="post-metadata">

**Author:** ![Macsy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/macsy/32/3238_2.png) [@Macsy](https://forum.kirupa.com/u/Macsy)\
**Post date:** [May 15, 2008, 6:53am UTC](https://forum.kirupa.com/t/cs3-f8-as2-stopping-a-tween-from-moving/260343/2 "2008-05-15T06:53:23Z")

</div>

This is the ancient code, that has been passed for centuries, hidden from the outside world…

```auto

stopit.onPress = function() {
myTween.start();
myTween.stop();

};

```
