# Delete a tween after use

**URL:** <https://forum.kirupa.com/t/delete-a-tween-after-use/280897>\
**Category:** flash\
**Created:** [February 2, 2009, 9:15pm UTC](https://forum.kirupa.com/t/delete-a-tween-after-use/280897 "2009-02-02T21:15:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skarab](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@Skarab](https://forum.kirupa.com/u/Skarab)\
**Post date:** [February 2, 2009, 9:15pm UTC](https://forum.kirupa.com/t/delete-a-tween-after-use/280897/1 "2009-02-02T21:15:11Z")

</div>

I’m just learning about the Tween class and it’s going fine. However I have a case where I want a tween to run one time and then become inactive. I have an airphoto which the user can click anywhere to zoom in on and using this code:

```auto
airPhoto_mc.onPress = function(){
    new Tween(airPhoto_mc, "_yscale", Strong.easeInOut, 100, 200, 2, true);
    new Tween(airPhoto_mc, "_xscale", Strong.easeInOut, 100, 200, 2, true);
    };

```

(I attempted to use the Zoom tween but couldn’t figure out the parameters it took.)

But I want this to run once and not have the photo zoom everytime someone clicks. Any help will be appreciated!
