# Stop(); action not working!

**URL:** <https://forum.kirupa.com/t/stop-action-not-working/206026>\
**Category:** Uncategorized\
**Created:** [November 4, 2006, 7:06am UTC](https://forum.kirupa.com/t/stop-action-not-working/206026 "2006-11-04T07:06:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vashthestampede](https://avatars.discourse-cdn.com/v4/letter/v/d07c76/32.png) [@vashthestampede](https://forum.kirupa.com/u/vashthestampede)\
**Post date:** [November 4, 2006, 7:06am UTC](https://forum.kirupa.com/t/stop-action-not-working/206026/1 "2006-11-04T07:06:30Z")

</div>

hi, sorry to bother you all again. Im working on a game where you destroy bricks with a ball. I defined a variable ‘score’, this represents the number of bricks on the screen.

On each of the bricks, i put this script:

\_parent.score --; //decrement score, so each time the ball hits a brick the ‘score’ will countdown .

basically, I want the game to proceed to a new level on a different frame when all the bricks have disappeared. so inputted:

onClipEvent (enterFrame)  
{  
if (\_root.score ==0)  
{  
gotoAndPlay(4); //the frame where the new level is  
}  
}

I’ve put a stop(); action on the frame, but when all the bricks disappear and the event is called upon, it plays passed it without stopping.

Could anyone suggest why?

thx a heap
