# Load and unload

**URL:** <https://forum.kirupa.com/t/load-and-unload/228973>\
**Category:** flash\
**Created:** [June 13, 2007, 12:06am UTC](https://forum.kirupa.com/t/load-and-unload/228973 "2007-06-13T00:06:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yfwmagazine](https://avatars.discourse-cdn.com/v4/letter/y/67e7ee/32.png) [@yfwmagazine](https://forum.kirupa.com/u/yfwmagazine)\
**Post date:** [June 13, 2007, 12:06am UTC](https://forum.kirupa.com/t/load-and-unload/228973/1 "2007-06-13T00:06:36Z")

</div>

Hi everyone,

I have this code on top of my movieclip and it seems to only work if I make it a button. Can someone please help!?!?:hangover:

on (release) {  
if (\_root.currMovie == undefined) {  
\_root.currMovie = “section2”;  
container2.loadMovie(“section2.swf”);  
} else if (\_root.currMovie != “section2”) {  
if (container2.\_currentframe\>= container2.midframe) {  
\_root.currMovie = “section2”;  
container2.play();  
}  
}  
}
