开发者

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")
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜