还有一个办法知道在计算机上安装的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