Skip to main content
Known Participant
November 12, 2018
Question

Can you get a Screen's scaling factor on Windows using Adobe AIR only?

  • November 12, 2018
  • 2 replies
  • 1656 views

The new ScreenMode class introduced in AIR 31 l(Release Notes Flash Player 31 AIR 31​) let's you get the different modes of a connected screen as well as the current mode. This is great, however I would also like to get the current windows scaling factor.

Is this possible using the AIR api's?

This topic has been closed for replies.

2 replies

mattr8755445
Known Participant
November 24, 2018

Thanks, I'm glad there's a thread about this, because I had the same problem.
After I disabled Display Scaling for my app (through file properties in Windows), I can't seem to turn it back on, and therefore can't test the solution. Oh well, hopefully users won't see the problem in my app anymore.

Amrita Gangwani
Adobe Employee
Adobe Employee
November 15, 2018

Hi,

This can be achieved by the contentsScaleFactor property. Please refer Stage - Adobe ActionScript® 3 (AS3 ) API Reference for more information.

Thanks,

Amrita

DHL83Author
Known Participant
November 19, 2018

Unfortunately, the contentScaleFactor only returns the scale of the primary monitor. If you have an example on how to get the scale factor for all individual monitors/screens that are connected to a Windows system, please let me know.

Amrita Gangwani
Adobe Employee
Adobe Employee
November 22, 2018

Hi,

On dragging the AIR application window to the secondary monitor which has a different DPI, the contentScaleFactor gives the updated scale value of the secondary monitor.

Thanks!