OK. I found my problem. it was as easy as adding my fricking labelField.


On Thu, Apr 17, 2008 at 10:34 AM, 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




-- 
Phil

Reply via email to