# Changing scenes by actionscript?

**URL:** <https://forum.kirupa.com/t/changing-scenes-by-actionscript/221901>\
**Category:** flash\
**Created:** [April 9, 2007, 7:10am UTC](https://forum.kirupa.com/t/changing-scenes-by-actionscript/221901 "2007-04-09T07:10:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mythic\_Fr0st](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@Mythic\_Fr0st](https://forum.kirupa.com/u/Mythic_Fr0st)\
**Post date:** [April 9, 2007, 7:10am UTC](https://forum.kirupa.com/t/changing-scenes-by-actionscript/221901/1 "2007-04-09T07:10:51Z")

</div>

Ok, so basically my first scene “menu” has all my login & signup stuff there

Question 1: How do I change scenes with actionscript (I have stop()🙂 written on my main timeline to stop it from going to scene “game” straight away…

I basically need to do gotoScene(“game”) or gotoScene(2);

etc…

Question 2: How do I interact with variables on scene “menu” and scene “game”

IE, I change some text in scene “game” based on the username you entered in scene “menu” considering I store the username into a variable, how do I get that?

\_root.myVar?  
\_level0.myVar?  
\_level1.myVar?

im not quite sure

Thanks in advance
