See if calling myMenu.show() first yields a height and width.  You 
may need to wait until after you know the menu has been shown before 
reading those properties; try tying the trace statements to the 
menu's showEffect.

Doug

--- In flexcoders@yahoogroups.com, "bhaq1972" <[EMAIL PROTECTED]> wrote:
>
> Not sure if anyone has looked at my post, but what i'm trying to 
do 
> is create a floating menu which appears near the mouse cursor 
(like 
> a right-hand mouse click). I want to be able to re-position the 
> floating Menu, if it appears too close to the edge etc.
> 
> tia
> bod
> 
> --- In flexcoders@yahoogroups.com, "bhaq1972" <[EMAIL PROTECTED]> wrote:
> >
> > Hi
> > I'm looking at the flex 1.5 livedocs example of how to create a 
> Menu -
> > http://livedocs.macromedia.com/flex/15/asdocs_en/index.html (at 
> the 
> > bottom).
> > 
> > I cant seem to get the height and width of the Menu after 
creating 
> the 
> > menu. eg
> > 
> > myMenu = Menu.createMenu(panel, myMenuData);
> > 
> > trace(myMenu.height); //always 0
> > trace(myMenu.width); //always 0
> > 
> > How do i get the actual height and weight.
> > 
> > TIA
> >
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to