先看我做的效果:
制作步驟:
新建立Flash文檔,按Ctrl+J修改屬性,效果如下:
然后導入一幅圖片:
然后打開(kāi)庫,雙擊導入的圖片,修改屬性為平滑:
然后按Ctrl+K打開(kāi)對齊面板,設置如下:
把該圖片轉換成電影剪輯元件:
把圖層1改名為Spin MovieClip。然后雙擊舞臺上的影剪輯元件,
然后選擇Actionscript層的第1幀后按F9打開(kāi)動(dòng)作面板,輸入下面指令:
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;
}
本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請
點(diǎn)擊舉報。