I have some shared code between an Adobe AIR App and an Adobe Flex App.
On one line of this code, the program must behave differently depending on if it is running within the Air runtime, or the Flex runtime.
How can I programmatically detect the difference?
if (Capabilities.playerType == "Desktop") {
trace("I'm running on AIR");
}
See the Capabilities
documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With