How to remove the Macromedia Flash Player ActiveX control
作者:baikang 日期:2007-11-29 13:21
How to remove the Macromedia Flash Player ActiveX control
Users might want to uninstall the Flash Player for several reasons:
- To ensure a clean upgrade to the latest version of Adobe Flash Player
- To test player detection schemes (see Additional Information for details)
- To test or fix a possible failed Flash Player installation
To uninstall the Flash Player:
You can uninstall the Flash Player using the Flash Player Uninstaller, or you can remove the Flash Player manually.
To uninstall using the Flash Player Uninstaller (recommended)
Refer to How to uninstall the Adobe Flash Player plug-in and ActiveX Control (TechNote 14157).
To manually uninstall the ActiveX control (Flash Players 6 and earlier only)
- Quit Internet Explorer, if it is open.
- From the Start menu, choose Search > Files or Folders and search for
flash.ocx(if you are removing Macromedia Flash Player 6) orswflash.ocx(if you are removing Macromedia Flash Player 5 or earlier).
Note: The name of the ActiveX control changed with version 6 to "flash.ocx". See Windows XP error installing Macromedia Flash Player ActiveX control (TechNote 16178) for details. - Note the path to the file. The path is typically:
C:\Windows\System\Macromed\Flash on Windows 95, 98 or WinME;
C:\WinNT\System32\Macromed\Flash on Windows NT or 2000;
C:\Windows\System32\Macromed\Flash on Windows XP.
If more than one copy of the file is found, note the paths to all copies of the file. - Select Start > Run.
- In the Open field, enter the following command:
regsvr32 {path}\{filename} /u
Replace{path}with the path tothe filenamenoted from step 3.
Replace{filename}with thefilenamenoted from step 2.
For example, if you're uninstalling the Macromedia Flash Player 6 ActiveX control on Windows 2000, the path would be:
regsvr32 C:\WinNT\System32\Macromed\Flash\flash.ocx /u - Click OK. You should get a RegSvr32 dialog box stating that the executable succeeded. If it failed, double check the path and file name for your system.
- Select Start > Find Files or Folders and enter
flash.ocx(if you are removing Macromedia Flash Player 6) orswflash.ocx(if you are removing Macromedia Flash Player 5). - Right-click on the found file and choose Delete from the context (right-click) menu. If more than one copy of the file exists, delete each one.
- Search for
swflash.infusing Windows Find utility (Start > Find > Files or Folders). This file is used during the installation of the Macromedia Flash Player ActiveX control. - Right-click on the file and choose Delete.
- Restart the machine.
To reinstall the Flash Player ActiveX control
Download the latest version from the Adobe Flash Player Download Center.
Note: The Windows Run program saves each command used in a pop-up menu which makes it easy to uninstall the control for future tests.
Additional information
For information on Adobe Flash Player detection, please refer toHow to detect the presence of the Flash Player (TechNote 14526).
Refer to System Requirements for a list of supported browsers and platforms.
If you are a Flash developer and require a previous version of Macromedia Flash Player for testing detection schemes, refer to Archived Macromedia Flash Players available for testing purposes (TechNote 14266).
SWFObject 使用事例
作者:baikang 日期:2007-11-29 13:09
SWFObject swfobject_1_5_1.rar (请登录后下载) 幽酷网,土豆网都使用这个JS来激活Flash控件。作者主页(http://blog.deconcept.com/swfobject/)看了他的例子,发现使用起来很简单:
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent"> This text is replaced by the Flash movie. </div> <script type="text/javascript"> var so = new SWFObject("movie.swf", "mymovie", "400", "200", "8", "#336699"); so.write("flashcontent"); </script> 上面这个就是SWFObject嵌入网页的代码,如果英文基本过关的话,可以直接去作者主页查看说明,我这里装装帅,稍微解释一下: SWFObject同样是一个使用Js激活Flash控件,的以第一步就是让你的网页里面加载SWFObject.js 然后后面是显示flash的层,里面的id="flashcontent"必需要跟后面so.write("flashcontent");的值一样,用于展示Flash This text is replaced by the Flash movie.是表示如果访客的浏览器不支持Js或Flash时,将会显示此字符 var so = new SWFObject("movie.swf", "mymovie", "400", "200", "8", "#336699"); 这个就是最主要的部分了,分别表示var so = new SWFObject(Flash文件地址, id值, 宽, 高, 需要定义的Flash播放器版本, 背景颜色 [, 质量, 访客端错误升级安装向导网址, 访客Flash版本错误转向地址l, 不使用SWFObject的网址(直接在网址后面加入?detectflash=false即可)]); ,这后面中括号里面的内容默认没有加上去的,如果有需要可以自行添加上有时候部分Flash还需要定义其它参数,如allowFullScreen呀等其它参数的,就可以直接在Js中插入so.addParam("参数", "值");即可,如官方给出的例子: <script type="text/javascript">
var so = new SWFObject("movie.swf", "mymovie", "400", "200", "8", "#336699"); so.addVariable("variable1", "value1"); so.addVariable("variable2", "value2"); so.addVariable("variable3", "value3"); so.write("flashcontent"); </script> 将Flash代码修改为: <div id="{MD5}"></div>
<script type="text/javascript"> var so = new SWFObject("{1}", "mymovie", "550", "400", "8", "#ffffff", "high"); so.addParam("allowScriptAccess", "sameDomain"); so.addParam("allowFullScreen", "true"); so.write("{MD5}"); </script> 将插件CC视频播放器的标签修改为: <div id="{MD5}"></div>
<script type="text/javascript"> var so = new SWFObject("http://union.bokecc.com/{1}", "mymovie", "500", "440", "8", "#000000", "high"); so.addParam("allowFullScreen", "true"); so.write("{MD5}"); </script> 下载
swfobject_1_5_1.rar (请登录后下载)需要注册 |
- 1
swfobject_1_5_1.rar (请登录后下载)