新的单击双击事件判断,真正的区分单击和双击

      多媒体世界 2006-7-31 17:5
--新的单击双击事件判断
property pFirstClickTime
on beginSprite me
pFirstClickTime = 0
end
on mouseup me
if the doubleclick then exit
starttimer
repeat while the timer<20
if the mousedown then
doubleclick()
exit
end if

end repeat
singleClick()
end
on singleClick me
go "single"
end
on doubleClick me
go "double"
end
标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commenttime}{commentauthor}

{CommentUrl}
{commentcontent}