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.
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.
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:
You might be able to search Github for more.