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
__._,_.___

--
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




__,_._,___

--
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

Reply via email to