Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
jff_ebt #1
Re: Dealing with asynchronous results handling.
Thanks for the information so far.
The first response seems to be an example of chaining (i.e. results from one
service call, calls the next service) which I'm trying to avoid. If I
misunderstood, let me know.
I have looked at the "call" object and that may be helpful. Acutally the Flex
manuals mention this in combination with the ACT (Asynchronous Completion
Token?) pattern. That should be useful for keeping track of requests that
have completed.
One thought I had was to send in an array or tree of functions. The idea
being to load up the array with the services I want to call and the order I
want them called. Each result handler will take itself out of the array and
then call the next function in the array. When the array/tree is depleated, we
know we're done.
Haven't tried to code this up yet. Not sure if I can create create such a
array/tree in ActionScript. I'll let you know if that works out.
jff_ebt Guest
-
Query results don't display properly in results table.IGNORE PREVIOUS
:disgust; I need to display the results of a query. The query runs properly. My problem is having specific results display in specific locations in... -
handling exceptions in asynchronous web service calls
I have a win forms application that calls a web service asynchronously. Occassionally, the web service call with raise an exception. Unfortunately,... -
dealing with the filesystem?
In Flash, How it is possible to create directorys and files etc? Can someone post some links or examples please? -
Dealing with categories
Hi All I know this is a 'find out yourself in your environment...' type query, but if I don't ask..... Basically my query is whats the best... -
Dealing with SIGHUP
I recently read a mailing list 'posting' that claimed that if one typed (program arguments) </dev/null >> stdout 2>>stderr & that the... -
ntsiii #2
Re: Dealing with asynchronous results handling.
I use a similar strategy in some cases. Sometimes a value array will require
two or more queires be completed before it is usable.
When the query(data service send()) is invoked, I add an entry to an array
with the id of the query, and store the id in the call object. When a result
event calls the handler, I get the id of the calling request, remove the
matching element from the array. When the array is empty, the data array is
ready to be assigned to a dataProvider property.
ntsiii Guest
-
ntsiii #3
Re: Dealing with asynchronous results handling.
And yes, you can actually pass a function to the call object, and run it rom the result handler. I have not tried this yet, though.
ntsiii Guest



Reply With Quote

