# Can't jump out of one movie to another?

**URL:** <https://forum.kirupa.com/t/cant-jump-out-of-one-movie-to-another/4844>\
**Category:** flash\
**Created:** [August 22, 2002, 11:26am UTC](https://forum.kirupa.com/t/cant-jump-out-of-one-movie-to-another/4844 "2002-08-22T11:26:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lynott](https://avatars.discourse-cdn.com/v4/letter/l/7bcc69/32.png) [@lynott](https://forum.kirupa.com/u/lynott)\
**Post date:** [August 22, 2002, 11:26am UTC](https://forum.kirupa.com/t/cant-jump-out-of-one-movie-to-another/4844/1 "2002-08-22T11:26:22Z")

</div>

Hi,

I have three buttons all in a movie clip called ‘container’.

I am loading variable into container from a text file and doing a test to see which button is the correct one. At the moment that is all working fine, when the correct button is pressed I output “yes” using the trace command.

I want to however jump to another movie entirely called ‘Succ’ when the correct button is pressed and jump to a movie called ‘Fail’ otherwise.

Each button has the following code attached to it

on (press) {  
if (this.p1) {  
trace(“yes”);  
gotoAndPlay(“Scene 1”, “Succ”);  
} else {  
trace(“no”);  
}  
}

I have created a layer called ‘Movies’ at the Scene 1 level and on the sixth frame I have inserted a keyframe and called the frame ‘Succ’. I have my successfull movie here, which is what I am trying to jump to when my correct button is clicked.

What am I doing wrong?

Any help would be much appreciated.

Thanks

L.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 22, 2002, 11:49am UTC](https://forum.kirupa.com/t/cant-jump-out-of-one-movie-to-another/4844/2 "2002-08-22T11:49:48Z")

</div>

the goto statement should have a ‘\_root.’ at the beginning like so.

```auto
on (press) {
    if (this.p1) {
        _root.gotoAndPlay("Scene 1", "Succ");
    }
}

```

Other than that, I can’t find anything wrong. I’d probebly have to look at the file.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 22, 2002, 11:56am UTC](https://forum.kirupa.com/t/cant-jump-out-of-one-movie-to-another/4844/3 "2002-08-22T11:56:24Z")

</div>

It still didn’t seem to work.

Is it ok if I send you the zip file to take a quick look?

L.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 22, 2002, 12:09pm UTC](https://forum.kirupa.com/t/cant-jump-out-of-one-movie-to-another/4844/4 "2002-08-22T12:09:25Z")

</div>

sure… my addie is [upuaut@centerspin.com](mailto:upuaut@centerspin.com)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 22, 2002, 12:11pm UTC](https://forum.kirupa.com/t/cant-jump-out-of-one-movie-to-another/4844/5 "2002-08-22T12:11:26Z")

</div>

That’s OK David.

I got it working,

thanks again for your help.

This worked

on (release){  
if (this.p0){  
trace(“yes”);  
\_root.gotoAndPlay(“Succ”);  
} else{  
trace(“no”);  
}  
}

🙂

Combination of both.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 22, 2002, 1:40pm UTC](https://forum.kirupa.com/t/cant-jump-out-of-one-movie-to-another/4844/6 "2002-08-22T13:40:44Z")

</div>

You know… I hate scenes… I know I relented on that a while ago… but for the life of me I can never seem to remember how to get them to work. Glad the \_root worked for you. In that case, \_parent would work too.
