2 Replies Latest reply on May 14, 2007 3:38 AM by BlackDhalia

    1120: Access of undefined property (webservice)

    BlackDhalia
      I have code as below. I keep having this compile error on the 5 lines of code after the webservice creation line of code. I have searched the net for a solution to no avail. Please help, this is urgent. Many thanks in advance.

      <mx:Script>
      <![CDATA[
      import mx.rpc.events.FaultEvent;
      import mx.rpc.events.ResultEvent;
      import mx.rpc.Responder;
      import mx.rpc.Fault;
      import mx.rpc.soap.WebService;
      import mx.rpc.soap.WSDL;
      import mx.rpc.soap.LoadEvent;
      import mx.rpc.soap.Operation;
      import flash.events.EventDispatcher;
      import flash.events.Event;

      var webService:WebService = new WebService(null, null);
      webService.wsdl="WSDL/csta-call-control-service.wsdl";
      webService.loadWSDL();
      webService.addEventListener(LoadEvent.LOAD, onWSDL);
      webService.addEventListener(ResultEvent, onRes);
      webService.addEventListener(FaultEvent.FAULT, onFault);
      ]]>
      </mx:Script>