# Playing MC transition from start when button clicked?

**URL:** <https://forum.kirupa.com/t/playing-mc-transition-from-start-when-button-clicked/201043>\
**Category:** Uncategorized\
**Created:** [September 18, 2006, 3:24am UTC](https://forum.kirupa.com/t/playing-mc-transition-from-start-when-button-clicked/201043 "2006-09-18T03:24:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flash\_Man1](https://avatars.discourse-cdn.com/v4/letter/f/8797f3/32.png) [@Flash\_Man1](https://forum.kirupa.com/u/Flash_Man1)\
**Post date:** [September 18, 2006, 3:24am UTC](https://forum.kirupa.com/t/playing-mc-transition-from-start-when-button-clicked/201043/1 "2006-09-18T03:24:17Z")

</div>

hey all,

when i click my button the first time my transition MC works fine but when i click it to another button it works fine too…the problem now:

when i click back to the first button it shows not the transition but only the completed transition so i get no animation ☹

anyone have any ideas why this would be?

my code that i have on my buttons is:

```auto
on (release) {
	swap1();
	_root.menu_1.gotoAndStop("clicked");
}

onClipEvent (enterFrame) {
	
	function swap1() {
		if (_root.menu_1.getNextHighestDepth) {
			_root.menu_1.swapDepths(_root.getNextHighestDepth());
		}else if (_root.menu_2.getNextHighestDepth){
			_root.menu_1.swapDepths(_root.getNextHighestDepth());
		} else if (_root.menu_3.getNextHighestDepth) {
			_root.menu_1.swapDepths(_root.getNextHighestDepth());
		} else if (_root.menu_4.getNextHighestDepth) {
			_root.menu_1.swapDepths(_root.getNextHighestDepth());
		}
	}
}

```

thanks in advance peeps 🙂
