# Trouble with \_root? please help

**URL:** https://forum.kirupa.com/t/trouble-with--root-please-help/181179
**Category:** Uncategorized
**Created:** [March 7, 2006, 3:59am UTC](https://forum.kirupa.com/t/trouble-with--root-please-help/181179 "2006-03-07T03:59:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![TonyWorld](https://avatars.discourse-cdn.com/v4/letter/t/aeb1de/32.png) [@TonyWorld](https://forum.kirupa.com/u/TonyWorld)
#### Post date: [March 7, 2006, 3:59am UTC](https://forum.kirupa.com/t/trouble-with--root-please-help/181179/1 "2006-03-07T03:59:40Z")

</div>

I’m a super novice with Action script and I need help.

This what i am trying (and failing) to do.

I have a base movie let’s call it “base” this is always displayed and I am loading movies into a blank movie I have created, this part works.

Where I am running into problems is I want to control which movie is playing with a variable let’s call this “Movie\_Num” I want to be able to edit the number of the variable in the other movies, this is where I have problems, I am horrible with this. Here’s my basic code (I know its archaic)

In a keyframe on the timeline In “BASE” I have this-

if (\_root.Movie == 0) {  
this.Movie\_Num.loadMovie(“Movie\_0.swf”);  
}

if (\_root.Movie == 1) {  
this.Movie\_Num.loadMovie(“Movie\_1.swf”);  
}

if (\_root.Movie == 2) {  
this.Movie\_Num.loadMovie(“Movie\_2.swf”);  
}

I want the Base file to load the second movie at the end of the first one so in the “Movie\_0.swf” I try to change Movie\_Num to 1 by adding this to the last frame of the movie -

\_root.Movie = 1

That’s all- Please please pleas help

Thanks
