# How do I get this work inside of a movie clip

**URL:** https://forum.kirupa.com/t/how-do-i-get-this-work-inside-of-a-movie-clip/188240
**Category:** flash
**Created:** [May 5, 2006, 4:48pm UTC](https://forum.kirupa.com/t/how-do-i-get-this-work-inside-of-a-movie-clip/188240 "2006-05-05T16:48:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Jackluna](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@Jackluna](https://forum.kirupa.com/u/Jackluna)
#### Post date: [May 5, 2006, 4:48pm UTC](https://forum.kirupa.com/t/how-do-i-get-this-work-inside-of-a-movie-clip/188240/1 "2006-05-05T16:48:43Z")

</div>

How do I get this work inside of a movie clip  
this code work perfectly on the main movie but when I put the button inside of movie dont work thanks for the help

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