Search the web
Sign In
New User? Sign Up
flexcoders · RIA Development with Adobe Flex
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
How do you detect AIR vs Flash Player at runtime?   Message List  
Reply | Forward Message #104228 of 149550 |
I've searched high and low to no avail. Whats the easiest way for your
code to find out where its running?

Thanks!
Ben




Thu Feb 28, 2008 4:06 pm

ben.clinkinb...
Offline Offline
Send Email Send Email

Forward
Message #104228 of 149550 |
Expand Messages Author Sort by Date

I've searched high and low to no avail. Whats the easiest way for your code to find out where its running? Thanks! Ben...
ben.clinkinbeard
ben.clinkinb...
Offline Send Email
Feb 28, 2008
4:06 pm

Well I haven't tested this, but an old method of finding out was to check the _root._url property to see if it started with "http". something to check into. !k...
Kevin Aebig
keslabs
Offline Send Email
Feb 28, 2008
4:29 pm

We had this before ! It's in the docs, but I found it hard to find as well, for some reason. if (Security.sandboxType == Security.APPLICATION) { // It's AIR } ...
Jim Hayes
jim80hayes
Offline Send Email
Feb 28, 2008
4:30 pm

Could also check to see if Application.application.hasOwnProperty(‘nativeApplication’), if so, it’s AIR… Again, not ideal. You’d think that System...
Beau Scott
beau6183
Offline Send Email
Feb 28, 2008
4:35 pm

... It's not up to the System to tell you if the Application is a SWF or not ? -- Tom Chiverton Helping to carefully brand revolutionary metrics on:...
Tom Chiverton
tom.chiverton
Offline Send Email
Feb 28, 2008
4:43 pm

Flash.system.Capabilities.playerType ________________________________ From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Beau...
Alex Harui
alex_harui
Offline Send Email
Feb 28, 2008
6:07 pm

Drrrr… I there it is. For some dumb reason I was trying flash.system.System.capabilities and since that doesn’t exist, I moved on. For reference: in a...
Beau Scott
beau6183
Offline Send Email
Feb 28, 2008
6:51 pm

1. Is there an aircoders group? 2. Can we enable the AIR app to contain unique settings at install? In our case, we're working on a customizable widget for the...
Radley
radleymarx
Offline Send Email
Feb 28, 2008
7:28 pm

Hi, There is an apollocoders yahoo group (http://tech.groups.yahoo.com/group/apollocoders/). ... You mean the same AIR app has to have different settings for...
Anirudh Sasikumar
anirudhsasik...
Offline Send Email
Feb 29, 2008
9:07 am

Thanks Anirudh, Thanks for your help. (for the archive) I did a little more research and found that arguments can be sent along with the install. I found this...
Radley
radleymarx
Offline Send Email
Mar 3, 2008
1:48 pm

Thanks Jim! ... as well, for some reason. ... On Behalf Of ben.clinkinbeard ... registered in England and Wales with registration No. 02622298 and registered...
ben.clinkinbeard
ben.clinkinb...
Offline Send Email
Feb 28, 2008
5:52 pm

I kinda spoke too soon. Security.APPLICATION is unavailable in a regular Flex app so it seems that the only way you can use this method is in a Flex library...
ben.clinkinbeard
ben.clinkinb...
Offline Send Email
Feb 28, 2008
6:09 pm

check the docs for: flash.system.Capabilities.playerType http://livedocs.adobe.com/flex/3/langref/flash/system/Capabilities.html Specifies the type of runtime...
Muzak
muzakdeezign
Offline Send Email
Feb 28, 2008
7:50 pm

Ahhh! Is that new I wonder? (I'd never spotted it before, sure I would have looked there first, maybe I missed it) If so, it's rather more what I'd expect. ...
Jim Hayes
jim80hayes
Offline Send Email
Feb 28, 2008
10:30 pm

It's not new, but in AS2 it's: System.capabilities.playerType And I think there was already something similar in AS1 (but can't remember..) Of course in AS2...
Muzak
muzakdeezign
Offline Send Email
Feb 28, 2008
10:50 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help