先看我做的效果:
点击这里下载源文件(解压密码:www.webjx.com)
制作步骤:
新建立Flash文档,按Ctrl+J修改属性,效果如下:
然后导入一幅图片:
然后打开库,双击导入的图片,修改属性为平滑:
然后按Ctrl+K打开对齐面板,设置如下:
把该图片转换成电影剪辑元件:
把图层1改名为Spin MovieClip。然后双击舞台上的影剪辑元件,
然后选择Actionscript层的第1帧后按F9打开动作面板,输入下面指令:
speed = 0;
// Acceleration speed.
accel = .1;
// Every frame execute the following code.
this.onEnterFrame = function(){
// Increment speed by the acceleration.
speed = Math.round((speed + accel)*100)/100;
// Rotate the shape by the current spin speed.
_rotation += speed;
}
制作完毕!按Ctrl+Enter测试吧

收藏到QQ书签




