What is the "proper" method for determining if a swf is running within an AIR application?

Posted by Michael Prescott on Stack Overflow See other posts from Stack Overflow or by Michael Prescott
Published on 2010-06-07T20:19:06Z Indexed on 2010/06/07 20:22 UTC
Read the original article Hit count: 215

Filed under:
|
|
|
|

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.)

© Stack Overflow or respective owner

Related posts about flex

Related posts about flash