4 Replies Latest reply on Jan 2, 2007 11:43 PM by ThomasP100

    Access parameters in e4x

    ThomasP100
      Hi!

      I try to access result-parameters from a WebService in e4x format.
      This is my ActionSript function:

      private function log(event:ResultEvent):void {

      showDetails.label = event.result[0].EText;
      }

      When I debug the function I get for event.result[0] the following result:

      <n0:TpTestResponse xmlns:soap-env=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:n0="urn:spp-com:document:spp:soap:functions:mc-style">
      <EText>
      CLEMENS
      </EText>
      <EText2>
      TEST2
      </EText2>
      </n0:TpTestResponse>

      But when I try to access parameter EText with event.result[0].EText it doesn't work. Is there another syntay to access these parameters.

      Thanks,
      Thomas

      P.S: In the debugging the parameter is displayed as following:
      <EText xmlns:soap-env=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:n0="urn:spp-com:document:spp:soap:functions:mc-style">
      CLEMENS
      </EText>