6 Replies Latest reply on Jul 15, 2008 12:33 PM by SiHoop

    Writing an HTTPService as AS3

    SiHoop Level 1
      How would I write an HTTPService in AS3? My HTTPService is as follows:
      <mx:HTTPService id="getPeople" url="SampleData.xml" method="POST" useProxy="false"
      result="dataHandler(event)" >
      </mx:HTTPService>

      I've tried the following function, but am getting an error with getPeople.result=dataHandler(event)

      private function myHTTPService():void{
      getPeople.url="SampleData.xml"
      getPeople.method="POST"
      getPeople.useProxy=false
      getPeople.result=dataHandler(event)
      getPeople.send()
      }