My account
Shopping cart
Knowledge base
Support

Knowledge Base

Important! All new questions are usually answered within the next business day.

Drop Down (Tree) Menu V3

(views: 26489)

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

(2007-08-29 - views: 12318)
Q: How can I set the anti-alias for the text of Drop Down (Tree) Menu's items
A: In order to access the textfield of the Drop Down (Tree) Menu v3 to set the anti-alias option or other option you may want to modify, you have to use the actionscript below:

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 


Back