try icon="@Embed('../assets/print_16.gif')"
It should work,
-sam
On 7/8/06, Shannon Hicks <[EMAIL PROTECTED]> wrote:
I've tried adding an icon to the PopUpMenuButton, but it doesn't seem to work.It shows the icon in Flex Builder, but not in the compiled SWF.I've added icons to every other type of button (the same icon, called from the same component in the same way), and they work fine.Maybe it's a bug?Code:<mx:PopUpMenuButton id="printMenu" label="Print: Original Size" icon="@Embed(source='../assets/print_16.gif')">
<mx:dataProvider>
<mx:Array>
<mx:Object label="Print: Original Size" />
<mx:Object label="Print: Fit to page" />
</mx:Array>
</mx:dataProvider>
</mx:PopUpMenuButton>
If you're going to try it, be sure to actually create the gif, otherwise FlexBuilder throws some compile error about not finding the gif :)Shan
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.9/382 - Release Date: 7/4/2006
__._,_.___
--
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
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
- Re: [flexcoders] PopUpMenuButton icon not working? Samuel Reuben
- RE: [Junk E-Mail - MED] Re: [flexcoders] PopUpMenuButto... Shannon Hicks
- Re: [Junk E-Mail - MED] Re: [flexcoders] PopUpMenuB... Samuel Reuben
- Re: [Junk E-Mail - MED] Re: [flexcoders] PopUpM... Samuel Reuben
- Re: [Junk E-Mail - MED] Re: [flexcoders] Po... Carlos Rovira
Reply via email to

