# Unloading external MCs without buttons

**URL:** <https://forum.kirupa.com/t/unloading-external-mcs-without-buttons/74743>\
**Category:** Uncategorized\
**Created:** [January 1, 2005, 11:30pm UTC](https://forum.kirupa.com/t/unloading-external-mcs-without-buttons/74743 "2005-01-01T23:30:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ellare](https://avatars.discourse-cdn.com/v4/letter/e/919ad9/32.png) [@ellare](https://forum.kirupa.com/u/ellare)\
**Post date:** [January 1, 2005, 11:30pm UTC](https://forum.kirupa.com/t/unloading-external-mcs-without-buttons/74743/1 "2005-01-01T23:30:36Z")

</div>

i have seen a few places here in the forum about how to unload external movie clips with the press of a button.

i need to dump a loaded external movie clip without the press of a button.

i thinking that this is a last frame action of the external movie clip.

if i use  
unloadMovie (“name of external swf that was loaded”)

- my cntl-enter swf just goes blank when the movie is done playing (action on the last frame)

so = to explain -  
main.fla is main flash document.

button in mc calls to load “externalSWF1.swf” . that works fine

but when “externalSWF1.swf” is done playing, i want my main.fla to go back to normal - with no button press

i have “externalSWF1.swf” loading into blank movie clip holder called “logoHolder\_mc” which rests on stage and main timeline of main.fla

if i can control other elements on the \_root time line with a frame action on the last frame of my “externalSWF1.swf” - i should be able to do this as well.

i have tried:  
\_root.gotoAndPlay (1);  
or  
\_root.unloadMovie (“externalSWF1.swf”);  
or  
\_root.loadMovie (“logoHolder\_mc”);  
or  
\_root.logoHolder\_mc.play();  
or  
\_root.logoHolder\_mc.attachMovie(“logoHolder\_mc”, 0);

none of these work.

but  
\_root.myScrollpane.\_alpha = “100”; works to control the alpha of a scroll pane instance sitting in the same place as my logoHolder\_mc.

thanks…

ellare
