Knowledge Base |
Drop Down (Tree) Menu V3
Drop Down Menu V3 and Drop Down Tree Menu V3 are xml flash accordion menus featuring customized states, customized transitions and tweens. Here are all known issues for Drop Down Menu V3 and Drop Down Tree Menu V3, they should be similar, since basically it is the same component. If you have any questions that you think we should discuss here please let us know.
Hand cursor
var listener = new Object();
listener.onDrawComplete = function(evtObj:Object):Void {
// Call the recurent function for the first menu.
parseMenu(myMenu.subMenus);
}
// This function parses the entire menu and sets the hand
// cursor for each item.
function parseMenu(arg):Void {
// Get the length of the menu items array.
var len:Number = arg.itemsMc.length;
// Get each menu item.
for (var i:Number = 0; i < len; i++) {
// Check if this menu item will open another submenu. If yes,
// we will check that submenu (call the recurent function on
// that submenu).
if (arg.itemsMc[i].myMenu!=undefined) {
parseMenu(arg.itemsMc[i].myMenu);
}
// The current menu item is actually a MovieClip object that
// contains other movie clips (background) and a text field (you
// can reference that text field too - check the knowledge base
// item at http://www.jumpeyecomponents.com/knowledgebase/Drop-Down-%28Tree%29-Menu-V3/Referencing-item%27s-textfield-in-Drop-Down-%28Tree%29-Menu-V3~138/
// Now we can set the hand cursor for the current menu item.
arg.itemsMc[i].useHandCursor = true;
}
}
// Add a listener to menu, so we know when the menu has
// been completely drawn (by this time you can have access
// to all the menu items).
myMenu.addEventListener("onDrawComplete", listener);
Here you have the example files for this case.
Files: DDTM_HandCursor.zip