Highlighted

Handling Event Results please help!

Avatar

Avatar

DRT_Chris

Avatar

DRT_Chris

DRT_Chris

05-03-2009

I'm new to Flex and I am using web services to make a call to
my server. This is working. My problem is that I don't know how to
store the value of the result to a variable.



When I put a break point at the end of my ResultHandler()
function and run the application in debugging mode, I can expand
the variables tab and see that the server is successfully returning
a string of text to Flex. The string is stored in the "value"
column for event.result.



However, my attempts to access this string of information
have been unsuccessful. I have tried:

myResultData = event.result;

myResultData = event;

myResultData = valueOf(event.result);

myResultData = event.message;



I am getting close with event.message, but I am getting
additional information around my text string that I do not want. An
example of what else is displaying is below:



(mx.messaging.messages::AcknowledgeMessage)#0

body = "MY TEXT STRING THAT I AM TRYING TO REFERENCE"

</return></ns1:operationName></SOAP-ENV:Body></SOAP-ENV:Envelope>"

clientId = "DirectHTTPChannel0"

correlationId = "53DAC418-BFF6-2DF8-DE07-D7C3148C98A4"

destination = ""

headers = (Object)#1

DSStatusCode = 200

messageId = "C55D4700-A83C-4B04-CFE7-D7C315CA659D"

timestamp = 0

timeToLive = 0



Can anyone help?!???

Replies

Highlighted

Avatar

Avatar

Greg_Lafrance

Avatar

Greg_Lafrance

Greg_Lafrance

13-03-2009

myResultData = event.result.value ???