Hi, Im trying to get this app working. currently Working it query's the database with <mx:XML> and populates <mx:ComboBox> on the selection is captures the user selection. Here on out Im having issues.
I need to pass the variables through a url so I bound the comobox selection to a variable and then the new URL to a variable with the combobox selection + added on. It then connects to the new Url with <mx:HTTPService> and populates a datagrid with the return XML from the Http request. my code complies with no problems but when run it errors out at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal: :childAdded() [C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:1553] at mx.managers::SystemManager/initializeTopLevelWindow() [C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:2330] at mx.managers::SystemManager/docFrameHandler() [C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:2214] The inital query to a URL works and populates a combox im unsure what is exactly wrong with my code. I have been staring at it for about 2 days now have issues. I found this website that helped. http://flashmove.com/forum/showthread.php?t=30242 and this one but it confused me more then helped. http://nwebb.co.uk/blog/?p=118 All help will be greatly welcomed. <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" > <mx:Script> <![CDATA[ private function onComboChange(event:Event):void { var ini:String = event.target.selectedItem; var url:String = "http://localhost/cgi- bin/dbRecords.cgi?ini=" + ini; dbRecords.send(); } ]]> </mx:Script> <mx:XML id="sqlQuerey" source="http://localhost/cgi- bin/dbtables.cgi" /> <mx:HTTPService id="dbRecords" url="url" /> <mx:DataGrid id="recordDisplay" dataProvider="dbRecords.lastResult.MasterFile.Record"> </mx:DataGrid> <mx:ComboBox id="ini" dataProvider="{sqlQuerey.name}" rowCount="30" change="onComboChange(event)" /> </mx:Application>