# Linking scenes

**URL:** <https://forum.kirupa.com/t/linking-scenes/19935>\
**Category:** Uncategorized\
**Created:** [May 3, 2003, 2:37am UTC](https://forum.kirupa.com/t/linking-scenes/19935 "2003-05-03T02:37:13Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![UK\_Goldorak](https://avatars.discourse-cdn.com/v4/letter/u/d2c977/32.png) [@UK\_Goldorak](https://forum.kirupa.com/u/UK_Goldorak)\
**Post date:** [May 3, 2003, 2:37am UTC](https://forum.kirupa.com/t/linking-scenes/19935/1 "2003-05-03T02:37:13Z")

</div>

Hi there…can anyone help me?

I am trying to link two scenes together…I can do that easily, what I have problem with is the fact that I have a button that is within a movie clip in Scene 1 which is trying to call Scene 2…Is there a way to link to a scene from a button that is not on the same level?

Thanks for the help

UK

---

<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:** [May 3, 2003, 2:38am UTC](https://forum.kirupa.com/t/linking-scenes/19935/2 "2003-05-03T02:38:58Z")

</div>

```php
on (release) {
	gotoAndPlay("About Me", 1);
}

```

---

<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:** [May 3, 2003, 2:41am UTC](https://forum.kirupa.com/t/linking-scenes/19935/3 "2003-05-03T02:41:44Z")

</div>

that doenst seem to work…I can link to scene 2 from scene 1 when I put button on main timeline…

But in this case the button I click just disappears and nothing happens

---

<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:** [May 3, 2003, 2:43am UTC](https://forum.kirupa.com/t/linking-scenes/19935/4 "2003-05-03T02:43:13Z")

</div>

in your response…what does about me and 1 represent?

Thanks

---

<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:** [May 3, 2003, 2:46am UTC](https://forum.kirupa.com/t/linking-scenes/19935/5 "2003-05-03T02:46:38Z")

</div>

silly me

I got the same code as you…but doesnt work…could it be anything to do with the fact that my button is within a movie within scene 1 that’s pointing to Scene 2?

---

<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:** [May 3, 2003, 3:08am UTC](https://forum.kirupa.com/t/linking-scenes/19935/6 "2003-05-03T03:08:46Z")

</div>

yeah… use a frame label instead.

highlight the frame you want to play and you’ll see an input text field in the properties panel, write the label there.

then in your script you’d have something like this:

```auto
on (release) {
_root.gotoAndPlay("frameLabel");
}

```

=)

---

<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:** [May 3, 2003, 3:10am UTC](https://forum.kirupa.com/t/linking-scenes/19935/7 "2003-05-03T03:10:36Z")

</div>

Thats exactly the problem. Flash has horrible support for scenes, I have no clue why they still keep them if they aren’t going to fix the bugs.

You can only change scenes using gotoAndPlay(“scene”, frame#) if you are using a button or action on the main timeline.

Since your button is within a movie clip on the timeline you aren’t able to do that.

There is a workaround though… in your second scene give the frame a frame label (right click on the frame you are triggering to play and open the properties panel and assign the name in there).

Now… on your button you can use…

[AS]on (release){  
\_root.gotoAndPlay(“yourFrameLabel”);  
}[/AS]

That way you target the frame label and not the scene 🙂

---

<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:** [May 3, 2003, 3:11am UTC](https://forum.kirupa.com/t/linking-scenes/19935/8 "2003-05-03T03:11:11Z")

</div>

and kax beat me… again… man I really need sleeeeeep!

Since Kax is here I think its safe to go sleeeeeepp

:sleep: :sleep:

---

<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:** [May 3, 2003, 3:15am UTC](https://forum.kirupa.com/t/linking-scenes/19935/9 "2003-05-03T03:15:32Z")

</div>

for my site i am using the code that i posted earlyer, and it works great. lol

---

<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:** [May 3, 2003, 3:24am UTC](https://forum.kirupa.com/t/linking-scenes/19935/10 "2003-05-03T03:24:07Z")

</div>

on (release){  
\_root.gotoAndPlay(“Godin”);

}

That’s the code I put in the actions of the buttons in the movie in scene 1. Godin is the label I assigned to frame 1 of Scene 2…

Unfortunately, when I click on the button, nothing happens…

Thanks for your patience in this matter…

UK\_Goldorak

---

<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:** [May 3, 2003, 3:38am UTC](https://forum.kirupa.com/t/linking-scenes/19935/11 "2003-05-03T03:38:52Z")

</div>

> _Originally posted by lostinbeta_  
> \*\*and kax beat me… again… man I really need sleeeeeep!

Since Kax is here I think its safe to go sleeeeeepp

:sleep: :sleep:\*\*

😛

wow! that’s a nice compliment!! thanks. =) 😛

and UK\_Goldorak… it works, try again, or you could attach your fla. 😉

---

<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:** [May 3, 2003, 3:53am UTC](https://forum.kirupa.com/t/linking-scenes/19935/12 "2003-05-03T03:53:36Z")

</div>

Just cant seem to get it to work.

If you could have a look at it I would be greatful…Keep in mind that its a work in progress…

After the initial movements, there will be three buttons, the third being a drop down, the first name in that list should link to Scene 2.

Thanks for all your help

UK

\*\*\*\* I tried to insert it, it tells me that the file is too big…

have you got an instant messenger?..

---

<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:** [May 3, 2003, 3:56am UTC](https://forum.kirupa.com/t/linking-scenes/19935/13 "2003-05-03T03:56:02Z")

</div>

nope… i don’t. :-\

send it to \*\*\*\*\*@msn.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:** [May 3, 2003, 4:02am UTC](https://forum.kirupa.com/t/linking-scenes/19935/14 "2003-05-03T04:02:05Z")

</div>

ok i just sent…hope you can be my savior…

---

<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:** [May 3, 2003, 4:23am UTC](https://forum.kirupa.com/t/linking-scenes/19935/15 "2003-05-03T04:23:10Z")

</div>

ehmm… i had no problems, it worked perfectly. :-\

---

<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:** [May 3, 2003, 4:47am UTC](https://forum.kirupa.com/t/linking-scenes/19935/16 "2003-05-03T04:47:22Z")

</div>

now I am pulling my hair out…cause I cant seem to get it work on my side…

there is a button at the beginning which I put there just to test…the button that I wan to link in the first name in the drop-down menu which is the third button that shadows in

maybe it’s the way that I testing the movie…

I am so confused…

---

<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:** [May 3, 2003, 4:55am UTC](https://forum.kirupa.com/t/linking-scenes/19935/17 "2003-05-03T04:55:34Z")

</div>

I choose Test Movie…and it doesnt work…perhaps there is something that I am not doing…

I’m dead lost…spending hours on this and it’s probably just a little stupid thing that I did…

😠

---

<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:** [May 3, 2003, 4:59am UTC](https://forum.kirupa.com/t/linking-scenes/19935/18 "2003-05-03T04:59:16Z")

</div>

well, like i said… there’s nothing wrong in the code, the frame label is correct and now i’m clueless as to why it’s working for me and not for you. :-\

---

<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:** [May 3, 2003, 5:56am UTC](https://forum.kirupa.com/t/linking-scenes/19935/19 "2003-05-03T05:56:56Z")

</div>

Hmmm, that makes no sense if the same exact file works for kax and not you UK… did you change anything to make it different from the file Kax has?

---

<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:** [May 3, 2003, 7:31am UTC](https://forum.kirupa.com/t/linking-scenes/19935/20 "2003-05-03T07:31:40Z")

</div>

i think so too… you must have changed something (maybe unintentionally?).

[Next page](https://forum.kirupa.com/t/linking-scenes/19935.md?page=2)
