看板 Flash 關於我們 聯絡資訊
※ 引述《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
andyjih:thx 推218.166.142.143 11/19
harry901:告訴我你到底是不是用倉頡輸入法...XD 推 218.167.250.8 11/19
※ 編輯: harry901 來自: 218.167.250.8 (11/19 01:18)
andyjih:是呀,只是那個圖跟圓是照題目寫的..^^" 推218.166.142.143 11/19
Ake:看到舊語法. @@" 推 210.85.48.159 11/19
harry901:我從Flash2開始學學到現在...@@~ 推140.122.199.193 11/19