# Loading movie onto level trouble

**URL:** <https://forum.kirupa.com/t/loading-movie-onto-level-trouble/49100>\
**Category:** Uncategorized\
**Created:** [April 19, 2004, 11:04pm UTC](https://forum.kirupa.com/t/loading-movie-onto-level-trouble/49100 "2004-04-19T23:04:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jenwhitie](https://avatars.discourse-cdn.com/v4/letter/j/9fc348/32.png) [@jenwhitie](https://forum.kirupa.com/u/jenwhitie)\
**Post date:** [April 19, 2004, 11:04pm UTC](https://forum.kirupa.com/t/loading-movie-onto-level-trouble/49100/1 "2004-04-19T23:04:23Z")

</div>

I have a button that is a few levels down in movie clips. When It is pressed, it is supposed to load diamonds.swf. It does this, but not on the first press. On the first press the \_root time line goes to and plays “fade,” but doesn’t execute the rest of the script.  
Am I missing some code that should be here?

on (press) {  
trace (\_root.\_currentframe);  
if (\_root.\_currentframe == 26) {  
\_root.gotoAndPlay(“fade”);  
\_root.menu.gotoAndPlay(“close”);  
}

unloadMovieNum(12);  
loadMovieNum(“diamonds.swf”, 12);

}
