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.
Referencing item's textfield in Drop Down (Tree) Menu V3
var listener = new Object();
listener.onDrawComplete = function (evtObj){
//call recurent function for the first menu.
parseMenu(dropDownMenu.subMenus)
}
//this is a function parse each menu .
function parseMenu(arg){
//arg = menu reference
//get the length of the menu items array
var len = arg.itemsMc.length
//go on each menu item
for (var i =0;i<len;i++){
//check if this menu item will open another submenu . If yes we will check that submenu
if (arg.itemsMc[i].myMenu!=undefined){
parseMenu(arg.itemsMc[i].myMenu);
}
//to reference the textfield you have to write arg.itemsMc[i] ... for example made the border visible for all items
//you can now apply anything you want on this textField.
arg.itemsMc[i].myText.border = true;
}
}
//add listener to menu
this.dropDownMenu.addEventListener("onDrawComplete",listener)
See the attached archive for a working example:
Files: DropDownMenuTextFieldReferencing.zip