# Break; doesn't seem to work

**URL:** <https://forum.kirupa.com/t/break-doesnt-seem-to-work/110477>\
**Category:** Uncategorized\
**Created:** [May 16, 2004, 9:36pm UTC](https://forum.kirupa.com/t/break-doesnt-seem-to-work/110477 "2004-05-16T21:36:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kathari](https://avatars.discourse-cdn.com/v4/letter/k/a183cd/32.png) [@kathari](https://forum.kirupa.com/u/kathari)\
**Post date:** [May 16, 2004, 9:36pm UTC](https://forum.kirupa.com/t/break-doesnt-seem-to-work/110477/1 "2004-05-16T21:36:46Z")

</div>

Hi  
I am trying to fool around with something for a temporary site for myself (since I never get around to redo it completely) and want to change pictures in an external swf based on where the pointer is located. So far the code looks like this:

```auto
function changer() {
	if (_root._xmouse<=180&&_root._ymouse<=130) {
		_root.the_mc.gotoAndPlay("fade");
	}
	if (_root.the_mc.pics._alpha<=4&&_root.the_mc.pics._currentFrame<=4) {
		_root.the_mc.pics.gotoAndStop(5);
		break;
	} else if (_root.the_mc.pics._alpha<=4&&_root.the_mc.pics._currentFrame>=5){
		_root.the_mc.pics.gotoAndStop(1);
	}
}

```

However the external swf(\_root.the\_mc.pics) doesn’t stop at its frame. I can see it flicker between frame 1 and 5. I have tried using two separate if statements, the above and also an else statement with no change. What am I doing wrong?
