function newTime(){ var hour:Date = new Date(); hourS = hour.getHours(); minuteS = hour.getMinutes(); secondS = hour.getSeconds(); time.htmlText = hourS +' : ' + minuteS + ' : ' +secondS; } onEnterFrame = newTime;