View Full Version : submenu on menu problem
cpigg
11-10-2005, 10:15 PM
I have a regular menu that im using in flash 2004. Does anyone know how to get the myMenu.indexOf(myItem); of a sub menu item. When I try to get the index of a sub item i get an undefined. Any help would be appreciated!
cpigg
11-17-2005, 05:48 PM
I found the solution. Do
for (var i = 0; i < MyMenu.length; i++) {
for (var j = 0; j < MyMenu.getItemAt(i).childNodes.length; j++) {
MyMenu.getItemAt(i).childNodes[i].attributes.data;
}
This is how you would get all submenu items from a menu component. Have fun!
vBulletin v3.5, Copyright ©2000-2010, Jelsoft Enterprises Ltd.