|
Prev: Flash install issues
Next: My flash game needs comments
From: Sbisa on 17 Mar 2006 10:00 I have successfully created a Tree menu using the component and an external xml file. It works beautifully. However, one curious characteristic is that the default Hit Area is just the tiny little grey arrow to the left of each menu folder. I have found that the users intuitively want to hover their mouse over the file or the text to its right, and to click on same to expand the menu. When nothing happens, they think the menu doesn't work. Only upon my telling them that its the grey arrow that they must use are they able to make the menu expand. Is there a way that I can make the entire folder "row" of the menu the hit area; or even just the file icon?
From: FlashTastic on 17 Mar 2006 14:00 Hello again, Yes, this is possible. Cheers, FlashTastic var treeListener:Object = new Object(); treeListener.change = function() { var item = myTree.selectedItem; var address = item.attributes.url; //if the node is closed if (myTree.getIsOpen(myTree.selectedNode) == false) { //open the node myTree.setIsOpen(myTree.selectedNode, true); } else { //otherwise, close the node myTree.setIsOpen(myTree.selectedNode, false); } if (address) { getURL(address, "_blank"); } }; myTree.addEventListener("change", treeListener);
From: Sbisa on 17 Mar 2006 17:47 Thank you. Once again you have the answer. I appreciate your help.
|
Pages: 1 Prev: Flash install issues Next: My flash game needs comments |