# Help with level issue

**URL:** <https://forum.kirupa.com/t/help-with-level-issue/120360>\
**Category:** Uncategorized\
**Created:** [August 23, 2004, 6:37pm UTC](https://forum.kirupa.com/t/help-with-level-issue/120360 "2004-08-23T18:37:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![simmu](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@simmu](https://forum.kirupa.com/u/simmu)\
**Post date:** [August 23, 2004, 6:37pm UTC](https://forum.kirupa.com/t/help-with-level-issue/120360/1 "2004-08-23T18:37:35Z")

</div>

hi, I have two swf file.

Let say A is the main movie and B will be a external swf file that i’m going to load into A movie.

The problems is that, some actionscript(AS) in my B movie is not working anymore after i load it into A movie. I believe that the AS in my B movie is not working anymore because it is refer to A as the \_root instead of B movie as \_root.

This can be a common problem. So, i wonder what should i change in the B movie AS in order to make it work in A movie.

Thank you

sorry for the bad english.☹

---

<div class="post-metadata">

**Author:** ![wizard](https://avatars.discourse-cdn.com/v4/letter/w/a87d85/32.png) [@wizard](https://forum.kirupa.com/u/wizard)\
**Post date:** [August 23, 2004, 7:00pm UTC](https://forum.kirupa.com/t/help-with-level-issue/120360/2 "2004-08-23T19:00:18Z")

</div>

What exactly is your ActionScript?

Say for example:  
You have a button in B movie.  
You want that button, when pressed, to go somewhere in A movie… then you would use _\_root._ in your ActionScript.  
So the script on your button would look like this:[AS]on (release) {  
\_root.gotoAndPlay(“FrameLabel”);  
}[/AS]Sorry if I’m not answering your question… I’m kind of having a hard time understanding what it is you’re asking exactly.

---

<div class="post-metadata">

**Author:** ![simmu](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@simmu](https://forum.kirupa.com/u/simmu)\
**Post date:** [August 23, 2004, 7:13pm UTC](https://forum.kirupa.com/t/help-with-level-issue/120360/3 "2004-08-23T19:13:23Z")

</div>

> [@wizard](#):
>
> What exactly is your ActionScript?
> 
> Say for example:  
> You have a button in B movie.  
> You want that button, when pressed, to go somewhere in A movie… then you would use _\_root._ in your ActionScript.  
> So the script on your button would look like this:[AS]on (release) {  
> \_root.gotoAndPlay(“FrameLabel”);  
> }[/AS]Sorry if I’m not answering your question… I’m kind of having a hard time understanding what it is you’re asking exactly.

Thank you for reply. Your AS is for B movie to control A movie. What i want to do is B movie control B movie. I hope you understand what i’m trying to do.

Really sorry for the bad explaination

---

<div class="post-metadata">

**Author:** ![wizard](https://avatars.discourse-cdn.com/v4/letter/w/a87d85/32.png) [@wizard](https://forum.kirupa.com/u/wizard)\
**Post date:** [August 23, 2004, 7:14pm UTC](https://forum.kirupa.com/t/help-with-level-issue/120360/4 "2004-08-23T19:14:57Z")

</div>

Oh, then you don’t need to define any level, this should do it:[AS]on (release) {  
gotoAndPlay(“FrameLabel”);  
}[/AS]
