Hi,
you can use the Date class of flash:
You have to call the getTime() function on every frame because the time in the Date object doesn't change while the real time passes.Code:var d = new Date; d.getTime();
To access the time values, you can use the following functions:
There's more information about the Date class in the 3DFA syntax helper or here:Code:d.getSeconds(); d.getMinutes(); d.getHours();
http://livedocs.adobe.com/flash/9.0/...efV3/Date.html




Reply With Quote