# How do I get this action to stop?

**URL:** https://forum.kirupa.com/t/how-do-i-get-this-action-to-stop/199539
**Category:** flash
**Created:** [September 3, 2006, 8:48pm UTC](https://forum.kirupa.com/t/how-do-i-get-this-action-to-stop/199539 "2006-09-03T20:48:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ghostdeer](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@ghostdeer](https://forum.kirupa.com/u/ghostdeer)
#### Post date: [September 3, 2006, 8:48pm UTC](https://forum.kirupa.com/t/how-do-i-get-this-action-to-stop/199539/1 "2006-09-03T20:48:28Z")

</div>

[SIZE=“2”][FONT=“Verdana”]I have a script that I found on here posted by Salvador Marley.

It is supposed to load these sub-menus (which are movieclips in the library, MC01, MC02, etc…) into an empty movieclip when certain links are clicked from the main menu.

The code works for loading the movieclip from the library, and even switches the movieclip when I choose the next link all like it’s supposed to do.

However my problem is that it will play the sub-menu movieclip, but it will not stop at the end. It constantly loops. I have tried to put the stop command in several places throughout my entire .fla but it doesn’t stop. The sub-menu’s transitions just keep repeating over and over again. How do I get it to only play the sub-menu movieclip once and then stop?[/FONT][/SIZE]

```auto
on (release) {
	
	if (_global.currMovie == undefined) {
		_global.currMovie = "MC02";
		_root.menu.attachMovie("MC02", "MC", 1);
	} else if (_global.currMovie != "MC02") {
			_global.currMovie = "MC02";
			_root.menu.MC.play();
		}
	}

```
