I am calling a Web service from my code and on result event
getting the data and putting the data in a Dictionary as key value
pair. Now another piece of code which is a for loop getting each
data from dictionary and putting it in textboxes.. Now my problem
is my for loop is executing before result event of web service
fired. So not getting the data on the textboxes. Can i stop(by any
way) program execution flow till the data come from web service.
Any pointers will be very helpful.
That's right. Flex is asynchronous, so you can't assume data
has been received. Put the loop in the result handler, or call
another function from the result handler after the data has been
received and processed as desired in the event handler.