What is playing my SWF?
Working with A开发者_JAVA百科ctionScript 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?
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")
}
精彩评论