Return to Snippet

Revision: 47555
at June 10, 2011 00:09 by weavermedia


Initial Code
import flash.system.Capabilities;

var pType:String = String(Capabilities.playerType);

if (pType == "Plugin" || pType == "ActiveX") {/* swf is running a browser */};
if (pType == "Desktop") {/* swf is running in a desktop AIR application */};
if (pType == "StandAlone") {/* swf is running in a standalone Flash Player */};
if (pType == "External") {/* swf is running in the Flash IDE preview player */};

Initial URL

                                

Initial Description
Useful if you want to control certain debugging or reporting features on the fly.

Initial Title
AS3 detect flash player type - broswer plugin, standalone, IDE etc

Initial Tags

                                

Initial Language
ActionScript 3