Hi,
As far as I know there is no way of changing applicationDPI at runtime, but is there a way to do it with compiler instructions or some other way to deal with it automatically if I want different applicationDPI for different platforms?
Presumably, you are referring to the applicationDPI property defined by the Spark Application component in Flex.
applicationDPI
Application
As I understand it, you can customize how a Spark Application scales by extending the mx.core.RuntimeDPIProvider class, and have it return a custom value. Pass an instance of this subclass to the runtimeDPIProvider property of the Application.
mx.core.RuntimeDPIProvider
runtimeDPIProvider
joshtynjala can you refer me to a code example?
Thanks, will give it a try
Here's a couple of custom runtime DPI providers that I found on Google:
https://github.com/renaun/CaltrainTimes/blob/master/src/com/renaun/mobile/dpi/CustomDPIProvider.as https://github.com/bigbluebutton/bbb-air-client/blob/master/src/CustomRuntimeDPIProvider.as
You might be able to search Github for more.