flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jitendra Jain <warriorofheavens...@gmail.com>
Subject Re: Auto scaling in IOS device Family (Mobile Version)
Date Mon, 16 Sep 2013 05:39:17 GMT
Thanks Raju


On Fri, Sep 13, 2013 at 11:01 PM, Raj Raju <raj.virtuali@gmail.com> wrote:

> Hi Jitendra ,
>
> When you targeting multiple devices with one build you need to do these
> things
>
> 1. dpi caluculation
> 2. scaling the content depends upon the screen resolutions
>
> dpi  caluculations:
>
>                         var widthScale:Number = screenWidth/TARGET_WIDTH;
> // on which resolution you made the assets (target_width-1024 * 768 )
> var heightScale:Number = screenHeight/Constants.TARGET_HEIGHT;
>  var minScale:Number = Math.min(widthScale,heightScale);
> var maxScale:Number = Math.max(widthScale,heightScale);
>
>                          asset.x   = maxScale;
> asset.y    = minScale;
>
>
> contentScalefactor :
>                                 var scaleFactor:Number =
> Math.max(TARGET_WIDTH/_screenWidth ,
>
> TARGET_HEIGHT/_screenHeight);
>
>
>
> Thanks,
> Raju.M
> Sr.GameDeveloper.
>
>
>
>
> On Fri, Sep 13, 2013 at 10:51 AM, Jitendra Jain <
> warriorofheavenster@gmail.com> wrote:
>
> > Hi Group,
> >
> >   I have few skins for Iphone 5 and now i want to target for all ios
> > devices. Is there any way to do that or else i have to manually calculate
> > dpi, resolutions and do the scaling stuff?
> >
> > --
> > Thanks and Regards,
> > JJain,
> >
> >    If you have knowledge, let others light their candles in it --Margaret
> > Fuller:
> >
> >
> >
> > --
> > Thanks and Regards,
> > JJain,
> >
> >    If you have knowledge, let others light their candles in it --Margaret
> > Fuller:
> >
>



-- 
Thanks and Regards,
JJain,

   If you have knowledge, let others light their candles in it --Margaret
Fuller:

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message