I followed this tut:
http://www.kirupa.com/developer/actionscript/xml_dropdown_menu.htm
…and customized for my own needs (horizontal as opposed to vertical menu)
However, I need the rollover to change to another movieclip - as opposed to a background color.
I know the instruction is located somewhere within this chunk of code:
[color=silver]// item submenu behavior for rollover event[/color]
if (node_xml.childNodes*.nodeName == “menu”){
// open a submenu
curr_item.node_xml = curr_node;
curr_item.onRollOver = curr_item.onDragOver = function(){
GenerateMenu(curr_menu, this.node_xml);
[color=silver]// show a hover color[/color]
[color=red] var col = new Color(this.background);
col.setRGB(0xf4faff);
[/color] };
}else{ // nodeName == “item”
curr_item.arrow._visible = false;
[color=silver]// close existing submenu[/color]
curr_item.onRollOver = curr_item.onDragOver = function(){
curr_menu.submenu_mc.removeMovieClip();
[color=silver]// show a hover color[/color]
[color=red] var col = new Color(this.background);
col.setRGB(0xf4faff);
[/color] };
}
Yet have no idea how to write the code to tell Flash to replace with a movie clip as opposed to simply changing the color?
My file is located here (in case it helps any to decipher where I am stuck):
http://www.andyford.com/xmlmenu/xmlmenu.zip
Thanks in advance!
“Lefty”