This doesn’t sound like a cairngorm issue, but a flex depth issue. Try this…  Try making the window height about 50 pixels, and add a bunch of menu items to the menubar’s dataProvider, then try.  See if the menu is showing up under the window (you will be able to see that because the menu’s items should extend beyond the bottom of the window).  I am not sure if this is the problem, but it is a logical first place to check.

 


From: [email protected] [mailto:[email protected]] On Behalf Of kaibabsowats
Sent: Tuesday, October 25, 2005 4:28 PM
To: [email protected]
Subject: [flexcoders] Re: (Flex 1.5 using Cairngorm Framework) MenuBars in PopUps not Working

 

More details are need?

How is PopUp.mxml used?
Whats the top component in PopUp.mxml,etc...

You probably doing this but just to double check, in PopUp.mxml are
you putting the AS function insdie <mx:Script><![CDATA[ ]></mx:Script>

Renaun

--- In [email protected], "fowleryj" <[EMAIL PROTECTED]> wrote:
>
> MenuBars aren't working properly in my pop-ups, whereas they are
> working just fine in my Main.mxml.
>
> In my pop-up, the File menu I've declared won't even drop down when I
> click on it.
>
> ---------------------------------------------------------------------
>
> In Main.mxml:
>
> <mx:MenuBar id="MainMenuBar" width="450"
> change="menuChangeHandler(event)">
> <mx:dataProvider>
> <mx:XML>
> <menuitem label="Finder">
>   <menuitem label="Finder A" type="Finder" data="">
>   <menuitem label="Finder B" type="Finder" data="">
> </menuitem>
> <menuitem label="Add/Edit">
>   <menuitem label="Add/Edit A" type="Add/Edit" data="">
>   <menuitem label="Add/Edit B" type="Add/Edit" data="">
> </menuitem>
> </mx:XML>
> </mx:dataProvider>
> </mx:MenuBar>
>
> <mx:Script><![CDATA[
> private function menuChangeHandler(event){
> if(event.menuItem.attributes.data == "FinderA") {
> commonViewHelper.openWindow('FinderA')                       
> } else if(event.menuItem.attributes.data == "FinderB") {
> commonViewHelper.openWindow('FinderB')
> } else if(event.menuItem.attributes.data == "AddEditA") {           
> commonViewHelper.openWindow('AddEditA')
> } else if(event.menuItem.attributes.data == "AddEditB") {
> commonViewHelper.openWindow('AddEditB')
> }
> ]]></mx:Script>
>
> (That works fine)
>
> ---------------------------------------------------------------------
>
> In PopUp.mxml:
>
> <mx:MenuBar id="PopUpMenuBar" width="450"
> change="menuChangeHandler(event)">
> <mx:dataProvider>
> <mx:XML>
> <menuitem label="File">
>   <menuitem label="Open" type="File" data="">
>   <menuitem label="Close" type="File" data="">
>   <menuitem label="Save" type="File" data="">
> </menuitem>
> </mx:XML>
> </mx:dataProvider>
> </mx:MenuBar>
>
> private function menuChangeHandler(event){
> if(event.menuItem.attributes.data == "Open") {
>   // Nothing yet
> } else if(event.menuItem.attributes.data == "Close") {
>   PopUpViewHelper.closePopUp();      // Closes the pop-up           
> } else if(event.menuItem.attributes.data == "Save") {
>   // Nothing yet
> }
> }
>
> (This is not working properly - the menu won't even drop down to show
> the options.)
>
> Any insight would be greatly appreciated.
>







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




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to