Use labelField or labelFunction. For example, if you arrray 
contains objects like oItem.Name, you can do something like:

  labelField="Name"

 if your objects are more complex use labelFunction

  Regards,
Oscar 
http://www.holaflex.com

--- In [email protected], "Phill B" <[EMAIL PROTECTED]> 
wrote:
>
> I know I'm missing something here. Problem is I'm still new to Flex 
so its
> real hard for me to find it.
> 
> I have a ColdFusion remote object that returns an array made from a 
query.
> The results are fine in a datagrid but just show [object OBJECT] in 
a
> combobox. This is the code in Flex.
> 
> <mx:Script>
>     <![CDATA[
>         import mx.collections.ArrayCollection;
>         import mx.rpc.events.ResultEvent;
>         import mx.controls.Alert;
>         import mx.utils.ArrayUtil;
> 
>         [Bindable]
>         public var years:ArrayCollection;
> 
>         private function yearHandler(event:ResultEvent):void{
>             years = new ArrayCollection(event.result as Array);
>         }
>     ]]>
> </mx:Script
> 
> <mx:ComboBox width="67" id="year" dataProvider="{years}" />
> 
> Anyone have a suggestion?
> 
> Thanks
> 
> -- 
> Phil
>


Reply via email to