views:

37

answers:

1

Working with ActionScript 3.0, is there a way to determine if my SWF file is been played in the standalone Flash Player or using a browser plugin?

+2  A: 

Capabilities.playerType does this:

http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/system/Capabilities.html#playerType

so:

if (Capabilities.playerType == "StandAlone") {
trace("standalone")
}
dtt101
the value for a plugin test is "PlugIn"
dtt101
Thank you very much... Exactly what I wanted!
Michel Lemieux