Help needed!

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