# Elementary problem tween class?

**URL:** <https://forum.kirupa.com/t/elementary-problem-tween-class/270671>\
**Category:** flash\
**Created:** [September 12, 2008, 6:52am UTC](https://forum.kirupa.com/t/elementary-problem-tween-class/270671 "2008-09-12T06:52:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sarah\_h](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@Sarah\_h](https://forum.kirupa.com/u/Sarah_h)\
**Post date:** [September 12, 2008, 6:52am UTC](https://forum.kirupa.com/t/elementary-problem-tween-class/270671/1 "2008-09-12T06:52:36Z")

</div>

Hi All,

I’m using the MX tween class to sequence a series of ‘slides’, each of which dissolve using the alpha property. Now I’ve got it all working quite well but when I click on the traditional ‘skip intro’ button (which takes me to a menu) the movie will start the next tween!! I need the skip button to kill all tweens so that nothing happens when i click skip.

A tween looks like this:  
var slide1:Object = new TweenDelay(slide1mc, “\_alpha”, Strong.easeIn, 100,0,2,true);

Here’s my button code:

on {release} {  
slide1.stop();  
slide2.stop();  
slide3.stop();  
gotoAndPlay(‘menu’);  
}

I was hoping that no matter where I am through the intro, clicking the button would stop all tweens. I did some testing where I removed the gotoAndPlay to see if it was stopping the tween and indeed it was. But another restarts when I jump to the menu frame.

The menu frame has no tween classes setup on it so I don’t know what’s going on, it seems to be some sort of legacy tween!!

Can any help me to kill tweens?

Sarah
