惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
N
Netflix TechBlog - Medium
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
博客园_首页
Google DeepMind News
Google DeepMind News
博客园 - 【当耐特】
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Recent Announcements
Recent Announcements
aimingoo的专栏
aimingoo的专栏
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Y
Y Combinator Blog
B
Blog RSS Feed
人人都是产品经理
人人都是产品经理
MongoDB | Blog
MongoDB | Blog
量子位
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Cloudflare Blog
有赞技术团队
有赞技术团队
Jina AI
Jina AI
GbyAI
GbyAI

博客园 - Easoney

sqlite management tool zz some JQeury code zz Microsoft Chart Controls for Microsoft .NET Framework 3.5 zz IronPython 的一些资料 add column for a table if this column not exists using T-SQL in SQLServer zz JQuery 插件 - Easoney good articles about ASP.NET ViewState zz IE对话框 - Easoney - 博客园 解决win2003安装exchangeServer后关机慢的方法 SQL Server 2005 : 清空数据库日志 (zz) zz web ContentType 大全 如何配置 SQL Server 2005 以允许远程连接 Configure Spring.net under IIS7 常用JS技巧(转) 开始学习RoR 2008, here you come New project, new challenge PIManager 1.2 beta3 release Trac crash with SVN 1.4.5
C# 引用FlashPlayer ActiveX 控件后判断其版本号
Easoney · 2009-05-18 · via 博客园 - Easoney

最近的一个C/S架构的项目中,Client端使用了ActionScript3编写的Flash和WinForm进行双向交互,

需要判断客户端的FlashPlayer版本,主版本号必须大于等于9,否则提示用户安装最新的FlashPlayer10,

使用以下代码即可通过Form窗体中的FalshPlayer 引用变量来获取版本号:

 string flashPlayerVersion = axShockwaveFlash.GetVariable("$version");
 
string majorVersion = flashPlayerVersion.Split(new string [] { "," }, StringSplitOptions.RemoveEmptyEntries)[0].Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries)[1];

if(int.Parse(majorVersion.Trim()) > 9)
{
                InstallFlashPlayer();
}

 

在我的机器上是  “WIN 10,0,22,87”