0 Replies Latest reply on Jul 13, 2007 11:01 AM by jfillman

    Scaling Embedded Button Icon

    jfillman Level 1
      I have a button defined like this:

      <mx:Button icon="@Embed('/images/desktop.JPG')" label="Desktop" left="5" top="5" width="20%"/>

      I also have a function that runs whenever the application is resized that maintains the button at 20% of the width of the application. The problem I am having is that the Embedded image does not scale down, it maintains it's dimensions. If the application gets small enough, the image just bleeds off the left edge of the application. Is there a way to make the image scale appropriately?