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

Drop Down (Tree) Menu V3

(views: 4585)

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: 1172)

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 


User Comments

useful thing to know
posted by jumpeyecomponents on 2007-10-17

This function used to parse the menu is very useful and important. For example if you want to use hand cursor for your menu, all you have to do is to replace the arg.itemsMc[i].myText.border = true; line with arg.itemsMc[i].useHandCursor = true; and you have now this menu with hand cursor. The same function is used on the "Centering the titles on the Drop Down (Tree) Menu V3" item...
textfield changing depending on the selected item
posted by kaktum on 2008-01-20

Hello!!
I would like to know if it is possible to have a dynamic textfield that takes a variable text from the Menu XML and how can I do it.

Example:
When I press "Home > Subtitle 1" the text shown on the dynamic textfield changes to "You are in Home-Subtitle 1"

Thanks
See the knowledge base item
posted by negush on 2008-01-21

Check out the knowledge base item that shows you how to use descriptions for each menu item: http://www.jumpeyecomponents.com/knowledgebase/Drop-Down-%28Tree%29-Menu-V3/Selection-description-from-XML~290/


Login to post your comment login to post your comment



Back

Knowledge Base Search

Enter keywords bellow:
Advanced Search

Menu

Special Offer

Special Offer - All in one Jumpeye Components bundle!

Get the JC Master Collection Now!

Free Trial Versions

The trial versions do have a major limitation. They will ONLY run into debugger flash player versions, such as the Flash IDE player and the activeX FP used by developers.

Switch from Free Trial version to Full version.

You can switch from Trial to Full versions in a blink of an eye.
See this tutorial in order to find out how.

We accept Google Checkout

Google Checkout Acceptance Mark

Secured by VeriSign