] Binding Array as Data Provider for Combobox.
I have a function that creates an array of objects:
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
Generally Arrays for which the data is changing should not be used for
binding since Flex will NOT be able to determine when Array data has
changed.
Now, for your issue there are two different solutions:
1. Use an ArrayCollection instead of an Array for you "ta" Array variable
2. Have a temporary
> public function createTimeArray():void{
> ... // Cut
>var ta:Array = new Array(); // Here is the problem.
The problem is here. You create a local variable [ta].
You overshadow the class member [ta].
Regards,
Edward Yakop
I have a function that creates an array of objects:
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.getD
4 matches
Mail list logo