In my code, below, if I change Combobox to Datagrid, the data loads just fine. But as a Combobox I get the exact number of records returned from my database table, but [Object object] in the Combobox. What am I missing?
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" xmlns:forms="forms.*" creationComplete="cfService.getStatesAsArray()"> <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; import mx.rpc.events.ResultEvent; [Bindable] private var statesData:ArrayCollection; private function statesHandler(event:ResultEvent):void{ statesData = new ArrayCollection(event.result as Array); } ]]> </mx:Script> <mx:RemoteObject id="cfService" destination="cfmx" source="cats.com.states" result="statesHandler(event)"/> <mx:ComboBox dataProvider="{statesData}"/> </mx:Application>

