Hi. Here is a sample source of a component.
<?xml version="1.0" encoding="utf-8"?> <mx:TitleWindow xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*" height="400" width="400" panelAlpha="1.0" marginTop="0" marginLeft="0" marginRight="0" headerColors="[ #0000ff, #ffffff]" mouseDown="setTopMost(event)" > <mx:Script> <![CDATA[ import mx.controls.Alert; import flash.display.DisplayObjectContainer; public function setTopMost(event:Event):Void { var myParent:DisplayObjectContainer = this.parent; myParent.setChildIndex(this,myParent.numChildren-1); } ]]> </mx:Script> <mx:MenuBar width="100%" height="26"> <mx:dataProvider> <mx:XML> <menuitem label="MenuItem A" > <menuitem label="SubMenuItem A-1" /> <menuitem label="SubMenuItem A-2" /> </menuitem> <menuitem label="MenuItem B" /> <menuitem label="MenuItem C" /> <menuitem label="MenuItem D" > <menuitem label="SubMenuItem D-1" type="radio" groupName="one"/> <menuitem label="SubMenuItem D-2" type="radio" groupName="one"/> <menuitem label="SubMenuItem D-3" type="radio" groupName="one"/> </menuitem> </mx:XML> </mx:dataProvider> </mx:MenuBar> <mx:VBox height="100%" width="100%" marginBottom="20" marginTop="10" marginLeft="10" marginRight="10"> <mx:RichTextEditor height="100%" width="100%"/> </mx:VBox> </mx:TitleWindow> I know it's strange "myParent.numChildren-1". Why does it need "minus 1"? When I click the menubar, switching window works but menubar doesn't work. Here is a sample source of application. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*" creationComplete="this.initApp()"> <mx:Script> <![CDATA[ import mx.managers.PopUpManager; private function initApp():Void { var obj01:Object = new MenuBarEventTest(); var obj02:Object = new MenuBarEventTest(); var popupSample01:Object = PopUpManager.popUpWindow(obj01, this, false,false); var popupSample01:Object = PopUpManager.popUpWindow(obj02, this, false,false); } ]]> </mx:Script> </mx:Application> hmmmmm.... I guess that TitleWindow has many bugs about events. --Shigeru --- In [email protected], Manish Jethani <[EMAIL PROTECTED]> wrote: > > On 12/20/05, sn197412 <[EMAIL PROTECTED]> wrote: > > > I could switch window z-index. > > My problem is that MenuBar event doesn't work. > > If you could provide a standalone test case (something I can compile > and run on my machine), that'll help us track and eliminate the > problem. > > Manish > ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income homes are not online. Make a difference this holiday season! http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- 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/

