Hi All
I have a problem with date chooser component in Flex 3, I cannot work
out what my error is, can anyone hint where I am going wrong ?
I have an array of numbers representing days in an array
for example;
var dayArray:Array = [1, 2, 3, 4];
I get the current month using the code below;
var now:Date = new Date();
monthValue = now.getMonth();
So I loop through my dayArray of days and create dates using the
following:
var length:int = dayArray.length;
for (var i:int = 0; i < length; i++){
var number:int = dayArray[i];
var cDate:Date = new Date( 2008, monthValue, number);
// I put each date into an array
dateArray.push(new Date(cDate));
// or I have used dateArray.push(cDate); it doesn't work either
}
So in the mxml I apply the disabledRanges="{dateArray}" to get the
bindable array and set the disabled dates.
But it doesn't work. I see that the dateArray contains my dates in the
debug , so why can't I get this to work. I have a list of up to 20
numbers representing days; does the disabledRanges have a limit on how
many days can be disabled ?? I am well stuck!
Any help is very gratefully recieved - Thanks