2

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?

Michel Lemieux
  • 113
  • 1
  • 2
  • 11

1 Answers1

3

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
  • 2,151
  • 25
  • 21