# Connecting two or three different Scenes with Actionscript

**URL:** <https://forum.kirupa.com/t/connecting-two-or-three-different-scenes-with-actionscript/64819>\
**Category:** flash\
**Created:** [September 20, 2004, 12:42pm UTC](https://forum.kirupa.com/t/connecting-two-or-three-different-scenes-with-actionscript/64819 "2004-09-20T12:42:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nanuka](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@nanuka](https://forum.kirupa.com/u/nanuka)\
**Post date:** [September 20, 2004, 12:42pm UTC](https://forum.kirupa.com/t/connecting-two-or-three-different-scenes-with-actionscript/64819/1 "2004-09-20T12:42:06Z")

</div>

[font=Fixedsys][color=slategray]Hello everybody![/color][/font]  
[font=Fixedsys][color=slategray]I’m having a hard time finding out the script ,that will fork for my flash movieclip.I have two separated scenes and i want them to be connected to each-other with some kind of script[/color][/font].[font=Fixedsys][color=slategray]Can anybody help me ,please?[/color][/font]

---

<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:** [September 20, 2004, 1:01pm UTC](https://forum.kirupa.com/t/connecting-two-or-three-different-scenes-with-actionscript/64819/2 "2004-09-20T13:01:57Z")

</div>

> [@nanuka](#):
>
> [font=Fixedsys][color=slategray]Hello everybody![/color][/font]  
> [font=Fixedsys][color=slategray]I’m having a hard time finding out the script ,that will fork for my flash movieclip.I have two separated scenes and i want them to be connected to each-other with some kind of script[/color][/font].[font=Fixedsys][color=slategray]Can anybody help me ,please?[/color][/font]

Hi Nanuka,

If ur having 2 diff swfs then here is the code:

sceneOneButton.onPress(){  
getURL(“Movie2”, “\_self”);  
}

And if only one Movie having 2 Scenes:

sceneOneButton.onPress(){  
gotoAndStop(“Scene2”, 1);  
// gotoAndStop(“Scene2”, “labelName”); //can give label name or frame no  
}

* * *

aShIsH

---

<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:** [September 20, 2004, 2:15pm UTC](https://forum.kirupa.com/t/connecting-two-or-three-different-scenes-with-actionscript/64819/3 "2004-09-20T14:15:41Z")

</div>

thanks ashishchandras for your response! I will try this and i hope it will work.
