RE: [flexcoders] Binding Array as Data Provider for Combobox.

2007-11-05 Thread Tracy Spratt
] 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

Re: [flexcoders] Binding Array as Data Provider for Combobox.

2007-11-05 Thread Maximilian Nyman
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

Re: [flexcoders] Binding Array as Data Provider for Combobox.

2007-11-05 Thread Edward Yakop
> 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

[flexcoders] Binding Array as Data Provider for Combobox.

2007-11-05 Thread Mark Forsberg
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