# \_root.currMovie

**URL:** <https://forum.kirupa.com/t/-root-currmovie/181683>\
**Category:** flash\
**Created:** [March 11, 2006, 10:08pm UTC](https://forum.kirupa.com/t/-root-currmovie/181683 "2006-03-11T22:08:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SquishyB](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@SquishyB](https://forum.kirupa.com/u/SquishyB)\
**Post date:** [March 11, 2006, 10:08pm UTC](https://forum.kirupa.com/t/-root-currmovie/181683/1 "2006-03-11T22:08:43Z")

</div>

I had this posted in another section, but i thought it fit better here. I hope someone could help me with this, im not the best a actoinscript

So i have a swf called index  
there is a movieclip and a container on there  
the container holds the content  
the movie clip is a bar, and has its own container, which is where the buttons are called to  
the buttons are a seperate swf, that is called into the container on the bar.  
when the button is clicked, i want to load a movie into the other container, which holds the content.  
here is the code

on (release) {

if (\_root.currMovie == undefined) {

\_root.currMovie = “faith”;  
container.loadMovie(“faith.swf”);  
} else if (\_root.currMovie != “faith”) {  
if (container.\_currentframe \>= container.midframe) {

\_root.currMovie = “faith”;  
container.play();

}

}

}

now what do i use insted of \_root.currMovie to load it into the other container.

cheers  
squishyb
