如何知道的Flash Player版本的动作脚本3.0 [英] How to know Flash Player Version from Action Script 3.0

查看:173
本文介绍了如何知道的Flash Player版本的动作脚本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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆