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

Drop Down (Tree) Menu V3

(views: 5915)

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

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

Knowledge Base Search

Enter keywords bellow:
Advanced Search

Menu

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