Monday, January 12, 2009

Flex Date class

I found a bug in Date class of AS 3.0.

Its assumed that always date object is an idle solution for few timer based events.
But, the date object after continuous access over a period of 2 seconds will not show any
difference in the output.

Try this...

var d0:Number = (new Date() ).getTime();
var d1:Number = (new Date() ).getTime();
// iterate this.. you will get same values for both d0 and d1
trace(d0 +" - " + d1);