# Stoping tween

**URL:** <https://forum.kirupa.com/t/stoping-tween/168859>\
**Category:** flash\
**Created:** [November 10, 2005, 6:41pm UTC](https://forum.kirupa.com/t/stoping-tween/168859 "2005-11-10T18:41:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![a2a](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@a2a](https://forum.kirupa.com/u/a2a)\
**Post date:** [November 10, 2005, 6:41pm UTC](https://forum.kirupa.com/t/stoping-tween/168859/1 "2005-11-10T18:41:29Z")

</div>

Hi,  
I here trying to figure out now how to stop tweens once the effect is reached… I see motions but they seem to go on indefinatelly and I wonder how to add a stop…

I have this code and would like to stop the event:

onClipEvent (load) {  
gravity = 2;  
time = getTimer();  
time /= 100;  
floor = 150 ;  
bounce = 0.96 ;  
speedy = 2 ;  
}  
onClipEvent (enterFrame) {  
speedy = speedy + gravity ;  
this.\_x += speedx/5 ;  
this.\_y += speedy/5 ;  
if (this.\_y\>floor) {  
this.\_y = floor ;  
speedy \*= -bounce ;  
}  
}

I’ve checked Canadian tuto for tweening but again I see that it has no stop…  
I specially like an effect that i show in [www.longchamp.com](http://www.longchamp.com) in **the Gallery** inside the Longchamp spirit, and Im trying to apply it. If you have ideas of a tuto for it let me know.  
Thx
