开发者

Flash date and time and coutdown timer

does any one know of any good countdown timer's for flash which i can use to be implemented in a flash game or quiz ?

also i have 开发者_如何转开发the following line of code

var endDate:Date = new Date(2010,7,30);

how would i go about having the endDate to be the current time and date + 30 minutes ?

thanks


this is to add 30 minutes to the current time

var min:Number = 30;
var mSecs:Number = min * 60 * 1000;
var sum:Number = mSecs + date.getTime();

var newTime:Date = new Date(sum);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜