Checking the Player Type: Use the flash.system.Capabilities.playerType property.
Possible values are PlugIn, ActiveX, StandAlone, and External.
package{
import flash.display.Sprite;
import flash.system.Capabilities;
public class Main extends Sprite{
public function Main(){
if(flash.system.Capabilities.playerType == "Plugin") {
trace("do actions for Mozilla, etc. browsers");
}
else if(flash.system.Capabilities.playerType == "ActiveX") {
trace("do actions for IE");
}
else {
trace("do actions for no browser");
}
}
}
}
Related examples in the same category