Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Handling Event Results please help!

Avatar

Avatar
Level 1
DRT_Chris
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
DRT_Chris
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
View profile
DRT_Chris
Level 1

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

Avatar

Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile

Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
Level 3

13-03-2009

myResultData = event.result.value ???