『我闪网~www.5shan.com』

Categories

-=推荐开发方面的Flash新闻、教程、下载、酷站、游戏、图片等=-
首页

Links

New Comments

Counter

Calendar

[教程]Flash中制作长按、短按功能的按钮

Author:我闪 PublishTime:2004-10-17

myBtn.onRelease = function() {
timer2 = getTimer();
trace(timer2-timer);
if (timer2-timer<200) {
trace("短按");
} else {
trace("长按");
}
};
myBtn.onPress = function() {
timer = getTimer();
};
[From 阿修的部落格]
分类于:我闪推荐

Comments

{CommentAuthor} at {CommentTime} | {CommentEmail} {CommentUrl} {CommentIp}
{CommentContent}
Powered by 5DBlog.com