开发者

Flash date and time and coutdown timer

开发者 https://www.devze.com 2022-12-25 13:02 出处:网络
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 ?

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

精彩评论

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

关注公众号