flex4.5 - FLEX AIR project directory structure for storing LOW and HIGH resolution images -
any idea directory structure should 1 follow flex air projects in there need store both low , high resolution images low-res images used when app loaded in mobile , hi-res image used when loading app in tablet.
here how it:
<fx:declarations> <s:multidpibitmapsource id="back" source160dpi="@embed('assets/icons/low-res/back.png')" source240dpi="@embed('assets/icons/mid-res/back.png')" source320dpi="@embed('assets/icons/high-res/back.png')"/> </fx:declarations> <s:states> <s:state name="portrait"/> <s:state name="landscape"/> </s:states> <s:navigationcontent> <s:button icon="{back}" label.landscape="back" click="navigator.popview()"/> </s:navigationcontent> see doc support multiple screen sizes , dpi values in mobile application
Comments
Post a Comment