|
主题: 有没有判断鼠标静止时间的方法?
|
 blackmouse
职务:普通成员
等级:1
金币:0.0
发贴:7
注册:2002/1/17 22:43:08
|
|
 bluebox
职务:普通成员
等级:1
金币:1.0
发贴:290
注册:2001/7/27 21:42:33
|
#22002/1/18 7:08:17
on exitFrame me if the mousedown or the lastevent > 10*60 then go to the frame+1 starttimer end if end 作个参考 如果mousedown或者最后反映>10*60 则go to the frame+1 可以变相理解为如果mouse静止或没有其他触发事件发生
|
 blackmouse
职务:普通成员
等级:1
金币:0.0
发贴:7
注册:2002/1/17 22:43:08
|
#32002/1/18 7:45:49
我先驱试试
|
 donlee
职务:普通成员
等级:1
金币:1.0
发贴:271
注册:2000/12/8 8:52:18
|
#42002/1/18 9:29:17
随便给哪个sprite作为behavior都可以。或者改为movie script,那就用global. property ptime,ploc on beginsprite me ptime=the ticks ploc=the mouseloc end
on exitframe me if the mouseloc<>ploc then ploc=the mouseloc put the ticks-ptime ptime=the ticks end if end
|