# XML menu - jumping to different scenes

**URL:** <https://forum.kirupa.com/t/xml-menu-jumping-to-different-scenes/52784>\
**Category:** flash\
**Created:** [May 27, 2004, 8:44am UTC](https://forum.kirupa.com/t/xml-menu-jumping-to-different-scenes/52784 "2004-05-27T08:44:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![juslooken](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@juslooken](https://forum.kirupa.com/u/juslooken)\
**Post date:** [May 27, 2004, 8:44am UTC](https://forum.kirupa.com/t/xml-menu-jumping-to-different-scenes/52784/1 "2004-05-27T08:44:38Z")

</div>

I’ve been playing around with this one for a while, but I’m not a programmer and seem to be going around in circles.  
I’m trying to use the XML dropdown menu to jump to different scenes within the flash file, but all I seem to be able to get it to do is reload the movie from the start.

This is a line from the XML file -

```auto
 <item name="Line" action="loadScene" variable="line"/>

```

And this is the bit I added to the AS -

```auto
Actions.loadScene = function(sceneVar){
  gotoAndPlay("sceneVar" , 1);
};

```

Not really sure why this is not working… Any suggestions??
