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:
body = "MY TEXT STRING THAT I AM TRYING TO REFERENCE"
clientId = "DirectHTTPChannel0"
correlationId = "53DAC418-BFF6-2DF8-DE07-D7C3148C98A4"
destination = ""
headers = (Object)#1
DSStatusCode = 200
messageId = "C55D4700-A83C-4B04-CFE7-D7C315CA659D"
timestamp = 0
timeToLive = 0