# Controlling Main SWF with button in another SWF

**URL:** <https://forum.kirupa.com/t/controlling-main-swf-with-button-in-another-swf/180973>\
**Category:** flash\
**Created:** [March 5, 2006, 5:19am UTC](https://forum.kirupa.com/t/controlling-main-swf-with-button-in-another-swf/180973 "2006-03-05T05:19:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![navigator81](https://avatars.discourse-cdn.com/v4/letter/n/7c8e57/32.png) [@navigator81](https://forum.kirupa.com/u/navigator81)\
**Post date:** [March 5, 2006, 5:19am UTC](https://forum.kirupa.com/t/controlling-main-swf-with-button-in-another-swf/180973/1 "2006-03-05T05:19:40Z")

</div>

Hi All,  
well i can imagin it can be a seriously stupid question for alot of you here…but its getting on my nerves here…

Here is the CASE:  
I have a main Movie which is calling different other Swf Files in a “container” movie clip.  
One of the External loaded SWF has some buttons in it but these are placed within a Movie clip!!!..  
lets take an example:  
“Main.swf” calls “1.swf” in the “container” movie clip.

1.swf has a button “btn\_1” in a movie clip names “mc\_1”.  
I have created another swf(details.swf).  
Now what i want is that when i click on “btn\_1”(it is inside the movie clip),it should replace the existing “1.swf” on container and load “details.swf” in it.

Is there any script i can write on the button that would enable this?

I am using :

on(release){  
\_level0.container.loadMovie(“details.swf”);  
}

But it doesnt work…

Please help!!!

Best Regards
