Hi Alex, Just looked at it. There are 4 different values it can take. I tried all 4: EXACT_FIT <http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/StageScaleMode.html#EXACT_FIT> NO_BORDER <http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/StageScaleMode.html#NO_BORDER> SHOW_ALL <http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/StageScaleMode.html#SHOW_ALL> All the 3 options above zoom the application upto 400%! (components are scaled up way too big)
Then I tried NO_SCALE <http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/StageScaleMode.html#NO_SCALE>. This doesn't change anything. It stays as is(components size look quite small). I came across this link: http://stackoverflow.com/questions/23242855/using-stage-scalemode-stagescalemode-show-all-how-to-determine-current-zoom-per Someone has mentioned this there: "Finally, I accomplished the same by alternative way. I instead of using, stage.scaleMode = StageScaleMode.SHOW_ALL, used stage.scaleMode = StageScaleMode.NO_SCALE and manually scaled the root to achieve zoom. Doing this, I now have zoomlevel known :). Hope this helps anyone with similar problem." I'm not sure what 'manually scaled the root' meant there. Any idea? On Mon, Feb 16, 2015 at 11:50 AM, Alex Harui <[email protected]> wrote: > Have you tried using Stage.scaleMode? > > On 2/15/15, 9:01 PM, "Deepak MS" <[email protected]> wrote: > > >Hi Om, > >Yes, Capabilities.screenDPI is there, but how do I set the DPI value for > >the application? > > > >I tried a trace: > >trace(Capabilities.screenDPI.toString()); > > trace(Capabilities.screenResolutionX.toString()); > > trace(Capabilities.screenResolutionY.toString()); > > > >In old laptop this is what I got: > >72 > >1600 > >900 > > > >In new laptop: > >72 > >1920 > >1080 > > > >Based on screenResolutionX\Y, I need to override the DPI value of the > >application. Where can I do that part? > > > >On Mon, Feb 16, 2015 at 10:04 AM, OmPrakash Muppirala > ><[email protected]> > >wrote: > > > >> Have you tried Capabilities.screenDPI ? It should be available in mx > >> applications as well. > >> > >> Thanks, > >> Om > >> > >> On Sun, Feb 15, 2015 at 8:29 PM, Deepak MS <[email protected]> > >> wrote: > >> > >> > Hello, > >> > Just like retina display ipads, off late, there have been laptops with > >> > higher DPIs. And we have some of our flex 3 applications in which all > >>the > >> > components look too small in overall size on screen in new laptops > >> > (something like the screenshots shown here in this link: > >> > https://forums.adobe.com/thread/977263 ) > >> > > >> > We can achieve it in flex 4 : > >> > > >> > > >> > >> > http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/cor > >>e/RuntimeDPIProvider.html > >> > > >> > But I want to know if there is anything I can try to achieve it in > >>flex 3 > >> > we applications, as it doesn't have "runtimeDPIProvider" property. > >> > > >> > Appreciate your help. > >> > > >> > Cheers! > >> > > >> > >
