Here is an example. Tracy <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"> <mx:Script><![CDATA[ function menuHandler(oEvent:Object) { vs1.selectedIndex = oEvent.menuItem.getProperty("data"); } ]]></mx:Script> <mx:MenuBar width="450" change="menuHandler(event)"> <mx:dataProvider> <mx:XML> <menuitem label="View"> <menuitem label="Not used" type="check" data="2A"/> <menuitem type="separator" /> <menuitem label="Available Views" > <menuitem label="View 1" type="radio" groupName="one" data="0"/> <menuitem label="View 2" type="radio" groupName="one" data="1"/> <menuitem label="View 3" type="radio" groupName="one" data="2" /> </menuitem> </menuitem> </mx:XML> </mx:dataProvider> </mx:MenuBar> <mx:ViewStack id="vs1" width="100%" height="100%" borderStyle="solid"> <mx:VBox label="View 1" width="100%" height="100%" backgroundColor="#CCFF00" > <mx:Label text="This is View 1"/> </mx:VBox> <mx:VBox label="View 2" width="100%" height="100%" > <mx:Label text="This is View 2"/> </mx:VBox> <mx:VBox label="View 3" width="100%" height="100%" backgroundColor="#FF3399"> <mx:Label text="This is View 3"/> </mx:VBox> </mx:ViewStack> </mx:Application>
-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Friday, October 21, 2005 4:44 PM To: [email protected] Subject: [flexcoders] Controlling ViewStacks with menu bar. I have been working with view stacks, and trying to control them with a menubar. However I am unable to get it to work together. Does anyone know how this can ben done. Any help 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 Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/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/

