Knowledge Base

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

Drop Down (Tree) Menu V3

(views: 12969)

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.



Correct width of the main menu

(2008-09-30 - views: 2248)
Q: Is it possible to find out the width of the menu because neither menu.width nor menu._width is returning the actual width value ?
A: Yes you can get the real width, but you have to access the container movie clip for all the main level menus: myMenu.subMenus.menus._width. This must be done after the onDrawComplete event of the component has been dispatched:

var listener:Object = new Object();

listener.onDrawComplete = function(evtObj:Object):Void {
    trace("my width is :: "+myMenu.subMenus.menus._width);
}

myMenu.addEventListener("onDrawComplete", listener);


User Comments

myMenu.subMenus doesn't exist in AS3
posted by rudeboyal on 2008-11-02
How can I get the above to work with my component in the AS3 version?
myMenu.subMenus doesn't exist in AS3
posted by negush on 2008-11-03
Unfortunately that no longer works for the AS3 version. On the AS3 version, there is no property called subMenu. You could however try the following line of code:

trace(myMenu.child.itemsMc[0].parent.width);

Please note that the code will only work after the DRAW event has been triggered.


Login to post your comment login to post your comment

Back