Flash Date Object doesn't work
Flash Date Object doesn't work
Out of context: Reply #5
- Started
- Last post
- 8 Responses
- unfittoprint0
Advice: frame looping is deprecated. you should either use onEnterFrame action or setInterval [better imo].
and you have to create a new Date Object each loop to retrieve real time seconds...
//1st frame action layer
if (myDate == undefined) {
dateFrame = function () {
myDate = new Date();
timepiece.minut es.gotoAndStop(myDat e.getSeconds()+1);
}
dateLoop = setInterval(dateFrame, 500);
}