1 Reply Latest reply on Aug 8, 2011 4:27 PM by Chris W. Griffith

    Raster scalable button?

    ivancucer

      Hello,

       

      I can't or don't know how to make a scalable raster button   I've spent much time in google but I didn't find solution

      Please see FXP file: http://cl.ly/3P2p3q1Q3Q1x440G0A1Y

       

      Please help!!!!!

       

      Thanks a lot!

       

      Ivan

        • 1. Re: Raster scalable button?
          Chris W. Griffith Adobe Community Professional

          I found this is easier to do within FlashBuilder. Here is a revised fxp with the buttonSkin revised to enable scaling. You can see I added the scaleGridTop, scaleGridRight, scaleGridBottom, scaleGridLeft within the Embed attribute. These values define the points the scale points of the graphics.

           

          <s:BitmapImage fillMode="scale" smooth="true"

             source="@Embed('/assets/images/button.png',scaleGridTop='2', scaleGridLeft='77', scaleGridRight='79', scaleGridBottom='55')"

             left="0" right="0" top="0" bottom="0" />

          I wish there was a better solution, but I don't know of one.
          Chris Griffith