I believe that the Menu expects any icons to be already loaded, it won't load icons dynamically. So what you have is correct only if you've embedded those images in the SWF. Actually you'd probably need to specify the embedded name.
I'm not sure Menu will support loading images on its own... That's Flex 1.5 at least, is this for 1.5 or 2.0? Matt -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexhtoo Sent: Friday, March 03, 2006 11:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to add Icon to MenuItem? I want to konw how to add icon to menuitem, and then How to customize the MenuCellRenderer? There are right way or not? <MainMenu> <menuitem label="slick"> <menuitem label="MenuItem A" > <menuitem label="SubMenuItem 1-A" /> <menuitem label="SubMenuItem 2-A" /> </menuitem> <menuitem label="MenuItem B" /> <menuitem label="MenuItem C" /> <menuitem label="MenuItem D" > <menuitem label="SubMenuItem 1-D" icon="icon1.png"/> <menuitem label="SubMenuItem 2-D" icon="icon2.png"/> <menuitem label="SubMenuItem 3-D" icon="icon3.png"/> </menuitem> </menuitem> </MainMenu> Please give me a way. -- 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 -- 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/