SWFObject推出2.0版本了,并在code.google.com上建立了开源项目[http://code.google.com/p/swfobject/]。
SWFObject是简单易用的Flash嵌入和检测JS代码,个人觉得比Adobe官方提供要更为方便,也更为易用的。这次版本更新改动非常大。
SWFObject2.0现提供两个主要调用方法。
1.swfobject.registerObject(flashContentId, flashVersion,expressInstallUrl );
flashContentId为Flash的ID;
flashVersion为播放SWF的Player版本;
expressInstallUrl为Flash Player更新安装的swf调用地址;如果当前版本低于flashVersion将自动更新。
2.swfobject.embedSWF(swfUrl, replaceElementId, swfWidth, swfHeight, flashVersion,expressInstallUrl, flashvars, params, attributes);
swfUrl为调用swf的地址;
replaceElementId为要用于替换成flash的可显示容器的ID;
swfWidth为swf的宽度;
swfHeight为swf的高度;
flashVersion为播放SWF的Player版本;
expressInstallUrl为Flash Player更新安装的swf调用地址;如果当前版本低于flashVersion将自动更新。
flashvars为flashvars传递的变量值;
params为flash player控件的参数设置;如menu="false" ;
attributes为flash player控件的属性值设置;如class="flashstyle";
SWFObject下载包:http://swfobject.googlecode.com/files/swfobject_2_0.zip
SWFObject的html生成器:http://swfobject.googlecode.com/files/swfobject_2_0_generator_1_1_html.zip
SWFObject的官方Blog:http://blog.deconcept.com/swfobject/
SWFObject是简单易用的Flash嵌入和检测JS代码,个人觉得比Adobe官方提供要更为方便,也更为易用的。这次版本更新改动非常大。
SWFObject2.0现提供两个主要调用方法。
1.swfobject.registerObject(flashContentId, flashVersion,expressInstallUrl );
flashContentId为Flash的ID;
flashVersion为播放SWF的Player版本;
expressInstallUrl为Flash Player更新安装的swf调用地址;如果当前版本低于flashVersion将自动更新。
2.swfobject.embedSWF(swfUrl, replaceElementId, swfWidth, swfHeight, flashVersion,expressInstallUrl, flashvars, params, attributes);
swfUrl为调用swf的地址;
replaceElementId为要用于替换成flash的可显示容器的ID;
swfWidth为swf的宽度;
swfHeight为swf的高度;
flashVersion为播放SWF的Player版本;
expressInstallUrl为Flash Player更新安装的swf调用地址;如果当前版本低于flashVersion将自动更新。
flashvars为flashvars传递的变量值;
params为flash player控件的参数设置;如menu="false" ;
attributes为flash player控件的属性值设置;如class="flashstyle";
SWFObject下载包:http://swfobject.googlecode.com/files/swfobject_2_0.zip
SWFObject的html生成器:http://swfobject.googlecode.com/files/swfobject_2_0_generator_1_1_html.zip
SWFObject的官方Blog:http://blog.deconcept.com/swfobject/
Trackback:
TrackBack URL for this entry:
http://www.klstudio.com/cmd.asp?act=tb&id=165
Comments:
Post a comment:
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。
