Groups | Blog | Home
all groups > flash data integration > october 2005 >

flash data integration : Integrating PendingCall result with wider application


Codlington
10/14/2005 8:48:28 AM
So I have a web service which returns a result and I have a PendingCall object
which handles the asynchronicity of this transaction. My problem is that I want
to share the result with the rest of my object-oriented application. There are
two parts to this : I can create a globally scoped structure to contain my
results (though this isn't preferred by the OO purists) but I cannot figure out
how to trigger the next step (processing the results) outside of the
PendingCall onResult function.
Dimitar
10/15/2005 12:00:00 AM
Create a class with 2 methods. First one to use the PendingCall and to execute
the second method whenever there are results.
Make the second method to return your result in a Array, or Array of obects
(depending of your complexity).

Import the class in your frame where all your app components are loaded. Use
it.


Dimitar
AddThis Social Bookmark Button