Okay, is HTTPService a single instance / use item? How would I get the
following to work?

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="vertical"
        creationComplete="SamplePointCollect.send()">
          <mx:Script>
                                <![CDATA[
                                        import mx.collections.ArrayCollection;
                                        import mx.rpc.events.ResultEvent;
                                        import mx.rpc.http.HTTPService;
                                        [Bindable]
                                        private var samplepoint:ArrayCollection;
                                        [Bindable]
                                        private var 
samplepoint2:ArrayCollection;
                                        
                                        private function 
resultHandlerSP(event:ResultEvent):void
                                        {
                                                samplepoint = 
event.result.response.data.row;
                                        }
                                        private function 
resultHandlerSP2(event:ResultEvent):void
                                        {
                                                samplepoint = 
event.result.response.data.row;
                                        }
                                ]]>
                        </mx:Script>
                        
                        <mx:HTTPService id="SamplePointCollect"
                                url="http://localhost/Points.php?method=FindAll";
                                result="resultHandlerSP(event)"/>
                                
                                <mx:HTTPService id="SamplePointCollect2"
                                
url="http://localhost/Variables.php?method=FindAll";
                                result="resultHandlerSP2(event)"/>
                                
                                <mx:ComboBox x="192" y="18" width="335" 
dataProvider="{samplepoint}" 
                                        labelField="Sample_Point_Name"
                                        id="SelectPoint">
                                </mx:ComboBox>
                                        
                                        <mx:ComboBox x="192" y="18" width="335"
dataProvider="{samplepoint2}" 
                                        labelField="Sample_Point_Name"
                                        id="SelectPoint2">
                                
                                </mx:ComboBox>
</mx:Application>

Reply via email to