PDA

View Full Version : getting seconds



paisley
June 5th, 2003, 07:24 PM
This is my code:

onClipEvent(load) {
test = new Date();
}
onClipEvent(enterFrame) {
nSeconds = test.getSeconds();
trace(nSeconds);
}

But the output is always the same number the whole time. Is there anything wrong with my code?

lostinbeta
June 5th, 2003, 07:31 PM
Move test = new Date(); into the enterFrame instead of the load :)