What is the "proper" method for determining if a swf is running within an AIR application?
- by Michael Prescott
I've got a Flex Web project and a Flex AIR project that use a common code-base. The common code defines several run-time loaded Flex Modules. I want the Flex Modules to behave differently depending on whether the running base application is WEB or AIR. What is the proper method for determining from the module code whether the module is running in a WEB or AIR application?
(I found that Security.sandboxType.toString() returns "application", but I haven't found anything better in the documentation, yet.)