name.text = "Loading ...";
var lvSend = new LoadVars();
var lvReceive = new LoadVars();
var dLocalNow = new Date();
g_nLocalBaseTime = dLocalNow.getTime();
g_nServerBaseTime = g_nLocalBaseTime;
var dServerMoment = new Date(this.Year, this.Month - 1, this.Day, this.Hour, this.Minute, this.Second, this.Millisecond);
var dLocalNow = new Date();
var dNow = new Date();
g_nServerBaseTime = dServerMoment.getTime() + (dLocalNow.getTime() - g_nLocalBaseTime) /2;
g_nLocalBaseTime = dLocalNow.getTime();
if (this.AdNumber != undefined)
{
g_nAdNumber = this.AdNumber;
} // end if
g_fDisplay = true;
这是一段FLASH时钟的 代码,,是24小时制的,我没搞过AS,想问下 如何改成12小时制的呢
------解决方案--------------------------------------------------------
你这段代码不涉及这个问题,找到有getHour()或者date.hour的地方,取得小时数,自己修改就好了