Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
garag #1
Synchronous Flex Calls
Hi,
I have a question about the WebService object.
My application needs to receive data from a WebService in synchronous way.
I explain better the problem. I have some custom components populated by data
received from Web Service.
When the application start, the istances of the various custom components are
created and each custom components calls the web service in order to populate
the respective dataprovider property.
To retrieve data, I have to add a listener to the Web Service result and then
manage the result when the web service returns them. In the application start
phase, I should have two custom components that can call contemporaneously the
same method of the webservice and I have to manage this situation.
I'd like to have a data access layer where each custom component access to it
to obtain data.
For example:
Asynchronous Way
...
var mycustcomp : MyCustComp = new MyCustComp ();
addResultListeneronWebService()
addFaultListeneronWebService()
callWebService();
....
Function to manage Result
{
mycustcomp.dataprovider = event.result;
}
Function to manage Fault
{
bla bla
}
Synchronous Way
...
var mycustcomp : MyCustComp = new MyCustComp ();
mycustcomp.dataprovider = CallSynchronousDataLayer (); ....
Obiviously the function CallSynchronousDataLayer will call the WebService,
will manage the result and then will return the data to mycustcomp dataprovider
property.
I hope that the question is clear. Is it possible to have this Synchronous
behaviour in ActionScript?
Thank you very much
Regards
garag Guest
-
synchronous actionscript vs mxml
Hi for making synchronous call with java method from as file i got example from http://www.adobe.com/devnet/flex/articles/flexfaq.html link 31Q. But... -
How do I make synchronous data calls
Hi for making synchronous call with java method from as file i got example from http://www.adobe.com/devnet/flex/articles/flexfaq.html link 31Q. But... -
Synchronous Abstraction for Flash remoting
Is there any work being done on a level of abstraction for flash remoting that would create a synchronous API to it, like was written to do wddx... -
Web service calls asynchronous vs synchronous
The best solution is to design you architecture using the observer pattern(GOF) K,Browne Developer -
Synchronous Send Message
I want to call an external application (Acrobat Distiller) from within a Filemaker script. I'm currently achieving this through the Send Message...



Reply With Quote

