Hi Nithya, You can handle the change event of MenuBar. In change event, you can load xml file and show the images in TileList or some other components. ##MenuBarChangeEventExample.mxml##
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FFFFFF" > <mx:Script> <![CDATA[ function handleMenuChangeEvent(event) { alert( eventobj.menuItem.attributes.label + ' clicked'); } ]]> </mx:Script> <mx:XML id="myMenuData"> <menuitem label="MenuItem A"> <menuitem label="SubMenuItem 1-A" /> <menuitem label="SubMenuItem 2-A" /> </menuitem> </mx:XML> <mx:Panel id="panel" title="Menu Bar Panel" height="35%" width="30%" > <mx:MenuBar id="menubar" dataProvider="{myMenuData}" change="handleMenuChangeEvent(event);"/> </mx:Panel> </mx:Application> Look at MenuBar ASDoc or help, to know about it. Try it and if you still have problems, let us know.. -abdul ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 1:47 PM To: flexcoders Subject: [flexcoders] menubar event handling hai i have a menubar which contains a list of categories.. I want a tile of images to be displayed beneath the menubar on click of a particular menuitem.. the images have their source in an external XML file.. how should i do this? I am new to flex so kindly help me with this.... regards, nithya ________________________________ Yahoo! Messenger <http://uk.rd.yahoo.com/mail/tagline_messenger/*http://uk.messenger.yahoo.co m> - Communicate instantly..."Ping" your friends today! Download Messenger Now <http://uk.rd.yahoo.com/mail/tagline_messenger/*http://uk.messenger.yahoo.co m/download/index.html> ________________________________ 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] <mailto:[EMAIL PROTECTED]> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> . 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/