# Add gotoAndStop action for XML menus?

**URL:** <https://forum.kirupa.com/t/add-gotoandstop-action-for-xml-menus/158283>\
**Category:** Uncategorized\
**Created:** [August 8, 2005, 7:43pm UTC](https://forum.kirupa.com/t/add-gotoandstop-action-for-xml-menus/158283 "2005-08-08T19:43:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wakeaustin](https://avatars.discourse-cdn.com/v4/letter/w/f4b2a3/32.png) [@wakeaustin](https://forum.kirupa.com/u/wakeaustin)\
**Post date:** [August 8, 2005, 7:43pm UTC](https://forum.kirupa.com/t/add-gotoandstop-action-for-xml-menus/158283/1 "2005-08-08T19:43:45Z")

</div>

I’ve worked through the excellent XML menu tutorial at: [http://www.kirupa.com/developer/actionscript/xml\_dropdown\_menu.htm](http://www.kirupa.com/developer/actionscript/xml_dropdown_menu.htm)  
and found it to be very helpful.

Now I’m trying to add the capability to jump to a frame label.  
Here is the section of the AS that defines the Actions:

[color=darkgreen]// This actions object handles methods for actions  
// defined by the XML called when a menu item is pressed  
Actions = Object();  
Actions.gotoURL = function(urlVar){  
getURL(urlVar, “\_blank”);  
};  
[/color][color=red]//[/color]  
[color=red]// here is the code i’ve added[/color]  
[color=red]// add gotoAndStop action - jumpTo  
//[/color]  
**[color=red]Actions.jumpTo = function(jump){**  
**gotoAndStop(jump);**  
**};[/color]**  
[color=darkgreen]Actions.message = function(msg){  
message\_txt.text = msg;  
};  
Actions.newMenu = function(menuxml){  
menu\_xml.load(menuxml);  
};[/color]

Is there a better way to do this?  
Please forgive my ignorance, not sure what I’m doing wrong, any help is appreciated.

Thanks,  
Wakeaustin
