I have an application where I created an array of times to populate
a combobox. The code has been working well for 6 months. Lo and
behold, today the combobox isn't populated. All I can come up with
is that the leap year is confusing Flex.
Here is the code:
public function createTimeArray():void{
var millisecondsPerMinute:int = 1000 * 60;
var currentDate:Date = new Date();
var year:int = currentDate.getFullYear();
var month:int = currentDate.getMonth();
var day:int = currentDate.getDate();
var startTimeDate:Date = new Date
(year,month,day,5,0);
var i:int
for(i = 0;i<102;i++){
var myObj:Object = new Object();
myObj.label = String(startTimeDate);
myObj.data = String(startTimeDate);
ta.addItem(myObj);
startTimeDate.setTime(startTimeDate.getTime() +
(10 * millisecondsPerMinute));
}
}
Is there patch that I may have missed?
Thanks.
Mark F.