2 Replies Latest reply on Aug 2, 2007 4:30 PM by ntsiii

    connect to service

    dex002
      In Flash (AS2) i used to connect to coldfusion components like the example below. Now, in Flex, I cannot use the same methods. Can someone give me a clue as to how I do the same thing in Flex with AS3?

      /****************************************************************************************
      SERVICE
      ****************************************************************************************/
      // service
      var CFMService:Service = new Service(
      //" http://127.0.0.1:8500/flashservices/gateway",
      " http://www.mywebsite.com/flashservices/gateway",
      null,
      "coldfusion.mailMe",
      null,
      null);
      /****************************************************************************************
      RESPONDER OBJECT
      ****************************************************************************************/
      function mailme_Result(re:ResultEvent):Void {
      webservice_mc._visible = true
      trace("web service good");
      }
      function mailme_Fault(fe:FaultEvent):Void {
      trace("web service bad")
      }