# Button loading 2 Separate SWFs

**URL:** <https://forum.kirupa.com/t/button-loading-2-separate-swfs/221752>\
**Category:** flash\
**Created:** [April 7, 2007, 12:10am UTC](https://forum.kirupa.com/t/button-loading-2-separate-swfs/221752 "2007-04-07T00:10:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![briand5](https://avatars.discourse-cdn.com/v4/letter/b/c0e974/32.png) [@briand5](https://forum.kirupa.com/u/briand5)\
**Post date:** [April 7, 2007, 12:10am UTC](https://forum.kirupa.com/t/button-loading-2-separate-swfs/221752/1 "2007-04-07T00:10:32Z")

</div>

Hi, I have having a problem using a button to load three separate SWF files, 2 with transitions and one without a transition. For some reason when the button is pressed it loads the last SWF file in both MovieClips that have transitions. If anyone could give me some help I would really appreciate it. Here is my button code.

> 

on (rollOver) {  
this.mc\_facials.gotoAndPlay(“2”);  
}  
on (rollOut) {  
this.mc\_facials.gotoAndPlay(“12”);  
}

on (release) {  
\_root.container.Menu\_Container.loadMovie(“spa\_facials\_menu.swf”);  
}

on (release) {  
if (\_root.currMovie == undefined) {  
\_root.currMovie = “spa\_gradienttext\_1”;  
\_root.container.GradientContainer.loadMovie(“spa\_gradienttext\_1.swf”);  
} else if (\_root.currMovie != “spa\_gradienttext\_1”) {  
if (\_root.container.GradientContainer.\_currentframe \>= \_root.container.GradientContainer.midframe) {  
\_root.currMovie = “spa\_gradienttext\_1”;  
\_root.container.GradientContainer.play();  
}  
}  
}

on (release) {  
if (\_root.currMovie == undefined) {  
\_root.currMovie = “spa\_toplinetext\_1”;  
\_root.container.TopLineContainer.loadMovie(“spa\_toplinetext\_1.swf”);  
} else if (\_root.currMovie != “spa\_toplinetext\_1”) {  
if (\_root.container.TopLineContainer.\_currentframe \>= \_root.container.TopLineContainer.midframe) {  
\_root.currMovie = “spa\_toplinetext\_1”;  
\_root.container.TopLineContainer.play();  
}  
}  
}

Thanks for the help,  
Brian
