# Function not stopping at }?

**URL:** <https://forum.kirupa.com/t/function-not-stopping-at/216481>\
**Category:** Uncategorized\
**Created:** [February 16, 2007, 11:11pm UTC](https://forum.kirupa.com/t/function-not-stopping-at/216481 "2007-02-16T23:11:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![imvain2](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/imvain2/32/620_2.png) [@imvain2](https://forum.kirupa.com/u/imvain2)\
**Post date:** [February 16, 2007, 11:11pm UTC](https://forum.kirupa.com/t/function-not-stopping-at/216481/1 "2007-02-16T23:11:22Z")

</div>

I have the below functions, actually I have more but its just repetive.  
When I click on any of my movieclips that are brickclick\_, they run all functions starting from the bottom up?

So for an example using the code below: If I clicked on Brick 0, the functions would run for brickclick\_1 then brickclick\_0 and not just the one being clicked on.

And, the movieclip is just a movieclip created using createEmptyMovieClip.

```auto

	_root.brickclick_0.onMouseUp = function()
	{
	   trace("----------------");
	   trace(this);
	   LoadBrick(0);
	}

	_root.brickclick_0.onMouseMove = function(){
		LoadToolTip(BrickArray[0][0]);	
	}

	_root.brickclick_1.onMouseUp = function()
	{
	   trace("----------------");
	   trace(1);
	   LoadBrick(1);
	}

	_root.brickclick_1.onMouseMove = function(){
		LoadToolTip(BrickArray[1][0]);	
	}

```
