0 Replies Latest reply on Feb 27, 2012 6:44 PM by KimHJ50

    how to use MultiDPIBitmapSource in BitmapFill

    KimHJ50

      Using Flash Builder 4.6 I can create the following code, but the bitmap never shows. If I set the BitmapFill source="@Embed('assets/mdpi/BackGround.png')" then it works.

      Why doesn't the MultiDPIBitmapSource work, is there a work around?

      This is a mobile app.

      Thanks for any help.

      Kim

       

       

      <s:Rect id="backRect" left="0" right="0" top="0" bottom="0">
      <s:fill>
         
      <s:BitmapFill id="backFill" fillMode="scale">
            
      <s:source>
               
      <s:MultiDPIBitmapSource
                          
      source160dpi="@Embed('assets/ldpi/BackGround.png')"
                          
      source240dpi="@Embed('assets/mdpi/BackGround.png')"
                          
      source320dpi="@Embed('assets/hdpi/BackGround.png')"/>
             
      </s:source>
          
      </s:BitmapFill>
      </s:fill>
      </s:Rect>