作者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