# "Transitions Between External SWFs" - using Movie Clips intead of Buttons

**URL:** <https://forum.kirupa.com/t/transitions-between-external-swfs-using-movie-clips-intead-of-buttons/158975>\
**Category:** flash\
**Created:** [August 13, 2005, 9:47am UTC](https://forum.kirupa.com/t/transitions-between-external-swfs-using-movie-clips-intead-of-buttons/158975 "2005-08-13T09:47:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Plus](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@Plus](https://forum.kirupa.com/u/Plus)\
**Post date:** [August 13, 2005, 9:47am UTC](https://forum.kirupa.com/t/transitions-between-external-swfs-using-movie-clips-intead-of-buttons/158975/1 "2005-08-13T09:47:34Z")

</div>

[font=Trebuchet MS][size=2]Hey there 😏

I have just completed the [“Transitions Between External SWFs”](http://www.kirupa.com/developer/mx2004/transitions.htm) tutorial and I’m now I’m at the stage of altering a few things in there to suit my needs. But I’ve run into a problem…

For my buttons, intead of “Button” symbols, I want to use “Movie Clip” symbols - reason being is that I’ve got some specially animated Movie Clip buttons that I wish to use.

To get this… err “working”… with my Movie Clip buttons I have needed to use “\_root.” when referencing to the container Movie Clip.

Now that works to an extent, but for some reason each button plays only “[/size][/font][font=Trebuchet MS][size=2]red.swf[/size][/font]” even when there is no mention of it in the ActionScript and is instructed to play “blue” for example (“red.swf” happens to be the first appearing movie).  
[font=Trebuchet MS][size=2]  
Can anybody help me to get this working properly? I hope it’s some stupid mistake on my part rather than something impossible.

**Normal method with Button - works fine!**

```auto

on (release) {

		if (_root.currMovie == undefined) {

		_root.currMovie = "red";
		container.loadMovie("[/size][/font][font=Trebuchet MS][size=2]red[/size][/font][font=Trebuchet MS][size=2].swf");
		} else if (_root.currMovie != "[/size][/font][font=Trebuchet MS][size=2]red[/size][/font][font=Trebuchet MS][size=2]") {
		if (container._currentframe >= container.midframe) {

		_root.currMovie = "[/size][/font][font=Trebuchet MS][size=2]red[/size][/font][font=Trebuchet MS][size=2]";
		container.play();

		}
	}
}[/size][/font][font=Trebuchet MS][size=2]

```

[/size][/font][font=Trebuchet MS][size=2]  
**New method with “Movie Clip button”** [/size][/font][font=Trebuchet MS][size=2]\*\* - strange problem…\*\*[/size][/font]  
[font=Trebuchet MS][size=2]

```auto

onClipEvent(load) {
	
	this.onRollOver = function() {
}
	
	this.onMouseUp = function() {
		
		if (_root.currMovie == undefined) {

		_root.currMovie = "[/size][/font][font=Trebuchet MS][size=2]red[/size][/font][font=Trebuchet MS][size=2]";
		_root.container.loadMovie("[/size][/font][font=Trebuchet MS][size=2]red[/size][/font][font=Trebuchet MS][size=2].swf");
		} else if (_root.currMovie != "[/size][/font][font=Trebuchet MS][size=2]red[/size][/font][font=Trebuchet MS][size=2]") {
		if (container._currentframe >= container.midframe) {

		_root.currMovie = "[/size][/font][font=Trebuchet MS][size=2]red[/size][/font][font=Trebuchet MS][size=2]";
		_root.container.play();
		}
	}
}

}[/size][/font][font=Trebuchet MS][size=2]

```

If anybody can help me out - THANKS! :}  
[/size][/font]
