Archive for July, 2008

为什么喜欢AIR?

那么多酷炫的flash可以在桌面上运行,爽

桌面应用程序有了超酷的动画和体验,爽

开发一个RIA可以同时在web和桌面上运行,爽

老旧的程序界面将逐步进化~

Comments

SWFObject 2.0版本

SWFObject 2.0,已经在code.google.com上建立了开源文档[http://code.google.com/p/swfobject/]。

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/

Comments

使用AS3.0的50条理由

Comments