如何知道的Flash Player版本的动作脚本3.0 [英] How to know Flash Player Version from Action Script 3.0
问题描述
还有一个办法知道在计算机上安装的Flash Player版本运行我们与动作脚本3.0?
SWF文件如果您在IDE中以下程序将让你的版本
跟踪(Capabilities.version);
如果你正在建设一个自定义类以下应该有所帮助。 请确保此以下code进入一个名为VersionCheck.as文件
包 { 进口flash.system.Capabilities; 公共类VersionCheck { 公共职能VersionCheck():无效 { 跟踪(Capabilities.version); } } }
希望这可以帮助,永远记住,所有的AS3语言都可以在这里在线学习 HTTP: //livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/ 和最好的教程在那里检查出李某在布赖姆洛的 http://www.gotoandlearn.com 和 http://theflashblog.com
< 3AS3
There is a way to know the flash player version installed on the computer that runs our SWF file with Action Script 3.0?
If you are programming from within the IDE the following will get you the version
trace(Capabilities.version);
If you are building a custom class the following should help. Make sure that this following code goes into a file named VersionCheck.as
package { import flash.system.Capabilities; public class VersionCheck { public function VersionCheck():void { trace(Capabilities.version); } } }
Hope this helps, always remember that all of the AS3 language can be studied online here http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/ and for the best tutorials out there check out Lee Brimelow at http://www.gotoandlearn.com and http://theflashblog.com
<3AS3
这篇关于如何知道的Flash Player版本的动作脚本3.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!