# Unloading Movies......HOW!?

**URL:** <https://forum.kirupa.com/t/unloading-movies-how/92435>\
**Category:** Uncategorized\
**Created:** [October 17, 2003, 4:33am UTC](https://forum.kirupa.com/t/unloading-movies-how/92435 "2003-10-17T04:33:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlackShadow](https://avatars.discourse-cdn.com/v4/letter/b/67e7ee/32.png) [@BlackShadow](https://forum.kirupa.com/u/BlackShadow)\
**Post date:** [October 17, 2003, 4:33am UTC](https://forum.kirupa.com/t/unloading-movies-how/92435/1 "2003-10-17T04:33:33Z")

</div>

I have 5 buttons and each of them load their own swf…

On each button I have this…With different loaded movies obviously…And different levels.

[AS]on (release) {  
\_root.createEmptyMovieClip(“emptyMC”, 5);  
\_root.emptyMC.\_x = 225;  
\_root.emptyMC.\_y = 238;  
\_root.emptyMC.loadMovie(“Photos.swf”);  
}[/AS]

What do I add to that so when another button is clicked, that movie unloads and the new one can load?!
