-
environment check
using flash 8 how can I check the runtime environment 'standalone' or 'browser'.
rgds
steve
-
Senior Member
check it for what? what are you trying to do?
-
I have it working...I wanted to turn certain functions off and on depending on what environment the player was paying in...as a .EXE player - standalone OR in a web browser.
so I check for the following
System.capabilities.playerType
using the following I check for plugin for browsers and I>E specifically with ActiveX and browser
runtime=(System.capabilities.playerType);//turn off the exit button if browser based.
if(runtime=="PlugIn"){
//do something here
}
if(runtime=="ActiveX"){
//do something there
}
Last edited by stevehsure; 08-26-2010 at 04:17 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|