# Help needed!

**URL:** https://forum.kirupa.com/t/help-needed/151424
**Category:** Uncategorized
**Created:** [June 15, 2005, 12:39pm UTC](https://forum.kirupa.com/t/help-needed/151424 "2005-06-15T12:39:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ibenschop](https://avatars.discourse-cdn.com/v4/letter/i/c57346/32.png) [@ibenschop](https://forum.kirupa.com/u/ibenschop)
#### Post date: [June 15, 2005, 12:39pm UTC](https://forum.kirupa.com/t/help-needed/151424/1 "2005-06-15T12:39:54Z")

</div>

Hi guys,

Bumped into a problem.  
I have a movieclip with instance name “test” and a button named “bt\_test”.  
All on mainstage in flash.

The action for the button is the following code:

on (rollOver)  
{  
if (test.\_currentframe == 1)  
{  
test.gotoAndPlay(“rollover”);  
}  
else  
{  
test.gotoAndPlay(“rollover”);  
} // end if  
}  
on (rollOut)  
{  
test.gotoAndPlay(“rollout”);  
}

* * *

The problem is when i roll over with my mouse it plays a movie tween but it keeps looping i want it to stop at a certain point. Lets say have a sqaure sizing up. When the square is maximized i want it to stop (the mouse is still ovet the button)

Any suggestions??

Thanks
