You can use a single HTTPService instance. Do not "new" it for every request. I usually instantiate I in mxml:
<mx:HTTPService id="myService" resultFormat="e4x" result="onResult(event)" fault..... Change the "url' if necessary: myService.url = "http://MyDomain/mysource.aspx", Build your request object: var oRequest:Object = {myName1:myValue1,myName2:myValue2,...} Invoke send using a AsyncToken: var asCall:AsyncToken = myService.send(oRequest); Set a call token property: asCall.callId = "myCallIdValue"; In the handler, do: var asCall:AsyncToken = event.token; var sCallId:String = asCall.callId; And away you go. Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Jason B Sent: Tuesday, April 29, 2008 2:43 PM To: [email protected] Subject: [flexcoders] flex frustrated Im finally starting to understand i now need to dig into flex action script for many things...can someone guide me to a doc containing details on where i can begin the learning process? ----------------------------------------------------------\ ---------------------------------------------------------- Do I need to have more then one of the Httpservice defined or can i program a generalrequest function and have a search button call it with the url param's i need? <mx:HTTPService id="stations_search_request" url="xml.php?searching_station=true" method="POST" result="defaultResult(event)" > </mx:HTTPService> public Function generalrequest(xmlurl){ var httpRequest:HTTPRequestMessage = new HTTPService(); httpRequest.url = 'xml.php' + xmlurl; httpRequest. }

