作者harry901 (↑是帥哥↓是美女N I
看板Flash
標題Re: 請問如何做
時間Tue Nov 18 23:56:36 2003
※ 引述《andyjih (few)》之銘言:
: ※ 引述《andyjih (few)》之銘言:
: : 用action寫
: : 一個圓 當滑鼠在左 圖往右轉
: 就當游標指在圓的右邊時,圓為逆時針轉
: 游標在圖的左邊時,圓變成順時針轉
: 至於有沒有要原地轉,是希望可以啦
原始檔 先存檔再開!!
http://web.cc.ntnu.edu.tw/~48970308/currotedu.fla
we make a MC named "cir", then we take it to be an instance named "cc".
In frame1, follows are simple function as your wanted.
rotspeed=getProperty("cc",_x)-_xmouse; //設定變數rotspeed
if(rotspeed>=50){
rotspeed==50;
}
if(rotspeed<=-50){
rotspeed==-50;
} //設定變數範圍
a=rotspeed*0.1+a; //設定變數a之值
setProperty("cc",_rotation,a); //設定"cc"之rotation.
In frame2==> make a loop for all.
That's all, enjoy.
--
好耶! 師傅不用去按摩了!!!
post by harry.nakata
1F:→ andyjih:thx 推218.166.142.143 11/19
2F:→ harry901:告訴我你到底是不是用倉頡輸入法...XD 推 218.167.250.8 11/19
※ 編輯: harry901 來自: 218.167.250.8 (11/19 01:18)
3F:→ andyjih:是呀,只是那個圖跟圓是照題目寫的..^^" 推218.166.142.143 11/19
4F:→ Ake:看到舊語法. @@" 推 210.85.48.159 11/19
5F:→ harry901:我從Flash2開始學學到現在...@@~ 推140.122.199.193 11/19