Probably a dumb question.. but... I create a menu like this: Menu.createMenu(). I will then do menu.show(x,y). My x & y will depend on the size of the menu that is to be shown because I need to make sure it doesn't flow off the bottom or right sides of the screen. But width & height of the menu object are 0 before it is shown. Is there a good way to get the actual height & width of the menu before it is shown so I can position it correctly?
3.4 has improvements in this area. You call PopUpManager.addPopUp() on the menu, then its measuredHeight/measuredWidth should be valid so you can call show() with the right coordinates. I think if you don't use 3.4 you might get an error.
Flex SDK Developer
Adobe Systems Inc.