one very small point, you can get rid of the line which adds a dummy
"Select" item by setting the prompt on the combo

--- In flexcoders@yahoogroups.com, "candysmate" <[EMAIL PROTECTED]> wrote:
>
> I'm tring to populate a comboBox with
> 
> var dsWeek:Array = [];
> [Bindable]
> var dsWeekArray = new ArrayCollection(dsWeek);
> var systemUtilitiesWeek:int = 35;
> 
> private function initDissection():void
> {
>       dsWeekArray.addItem({week:"Select"});
>               
>       for(var ds1:int = 1; ds1 <= systemUtilitiesWeek; ds1 ++)
>          {
>                       dsWeekArray.addItem({week: ds1});
>          }
>          
>       dsWeekArray.refresh();   
> }
> 
> I'm expected the comboBox, with dataprovider set to {dsWeekArray}
> to be:
> 
> Select
> 1
> 2
> 3
> 4
> 5
> ...
> 
> but it just says [Object, object]
> 
> Where have I gone wrong please?
>


Reply via email to