Knowledge Base |
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);
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
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.
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
Other questions in this item:
Drop over HTML content Call JavaScript from XML Open menu item pages into target - "_self" Item description from XML Initiate Drop Down Tree Menu V3 through ActionScript Disable-Enable Drop Down (Tree) Menu Displaying the submenu horizontally instead of vertical Navigate through scenes Adding a checkbox to a menu Hand cursor Referencing item's textfield in Drop Down (Tree) Menu V3 Centering the titles on the Drop Down (Tree) Menu V3 Load movies on item select Go to different frames by pressing a menu item Changing Design Different text formats and anti alias setXML() generates error message Adding a separating gap between menu items Autoexpand on start Open menu items upwards Load movies on item select Initiate DropDownTreeMenuV3AS3 by ActionScript codeMenu |
|
|

How can I get the above to work with my component in the AS3 version?