# Need Help! stopping tween and keeping it stopped

**URL:** <https://forum.kirupa.com/t/need-help-stopping-tween-and-keeping-it-stopped/317030>\
**Category:** flash\
**Created:** [December 8, 2010, 12:30pm UTC](https://forum.kirupa.com/t/need-help-stopping-tween-and-keeping-it-stopped/317030 "2010-12-08T12:30:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavel963](https://avatars.discourse-cdn.com/v4/letter/p/51bf81/32.png) [@pavel963](https://forum.kirupa.com/u/pavel963)\
**Post date:** [December 8, 2010, 12:30pm UTC](https://forum.kirupa.com/t/need-help-stopping-tween-and-keeping-it-stopped/317030/1 "2010-12-08T12:30:40Z")

</div>

Hi,

I’ve been try to do this for a while now and seem to be really stuck, hope someone can help me out, I’m sure its a simple problem and I’m just not seeing it.

In my movie I have 2 scenes in the first one there is a button that is flashing using tween and alpha. in this scene I’m using this code:

stop();  
btn1.play();  
btn1.onPress = function()  
{  
btn1.stop();  
gotoAndStop(“f2”);  
};

to get the button to stop tweening and to go to the 2nd scene which is labeled f2.

On the 2nd scene I got another button with the code:

stop();  
btn2.onPress = function()  
{  
\_root.gotoAndStop(“f1”);

};

Which goes back to the first scene. What I can’t get is how to keep the tweening stopped after going to 2nd scene and returning to the first.

Hope someone can help me!

Thx Pavel
