I have a problem that I am trying to fix and need a little help. I have built my navigation in flash, all the button names are loaded by XML. The problem that I have is that I cannot script the buttons via XML to control the movieclip timeline. I am only trying to use a simple gotoAndPlay type function, however I dont know how to script it in XML. The only way that I know, is to load a new URL. Here is the AS and the XML. Any help would be greatly appreciated, Thank you in advance.
**AS: **
var GLB_data:CMenuVertClassicGlobalData = new CMenuVertClassicGlobalData();
GLB_data.m_local_root = this;
var m_xml:XML = new XML();
m_xml.ignoreWhite = true;
m_xml.onLoad = function(success)
{
if (success)
{
var xml_reader:CMenuVertClassicXMLReader = new CMenuVertClassicXMLReader(GLB_data);
xml_reader.ReadXML(m_xml);
var root_node = xml_reader.GetFirstMenuRootNode(m_xml);
var rootGroup = new CMenuVertClassic(0, 0, "menu", 0,null,GLB_data);
rootGroup.BrowseSubMenu(root_node, 0, null);
rootGroup.UnselectAndArrange();
GLB_data.m_local_root.m_root_group = rootGroup;
}
};
m_xml.load(“menu.xml”);
//
this.menuItem_mc._visible = false;
onEnterFrame = function () {
GLB_data.m_local_root.m_root_group.ProcessState(0.1);
};
**XML: (the part im having trouble with) **
<!-- MENU STRUCTURE -->
<menu_structure>
<item>
<item text = "Specials" url="" url_self = "0" >
</item>
<item text = "Kits" url = "" url_self = "1" >
<item text = "Detail" url = "" url_self = "0" />
<item text = "Washing" url = "" url_self = "1" />
</item>