This blog isn't maintained anymore. Check out my current project, an agile/scrum management tool.

Sunday, March 02, 2008

Detecting whether running in ADL vs. installed AIR

I noticed something while implementing the solution I talked about yesterday for dealing with self-signed vs. CA signed AIR apps.

The publisherId field is a blank string when running from within ADL.  It's an easy way to detect an installed AIR version vs. a version running within the debugger or just directly using ADL.  

I haven't really needed it so I haven't searched the docs.  There might be an explicit way to detect that scenario in the AIR api (feel free to comment and point it out), but if not and you need it, there you go.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]



<< Home