The data gets populated/manipulated in the result="...".  If the data
doesn't come in for some reason, the fault handler kicks in.  You can
pass customized values into the fault handler from your RDO as well.
So, if your handleList1Result(event) function fires, then it has data.
Then you can check for individual variables within that data set to make
sure you have everything...

 

________________________________

From: [email protected] [mailto:[email protected]] On
Behalf Of coder3
Sent: Thursday, August 20, 2009 1:36 PM
To: [email protected]
Subject: [flexcoders] how to wait for more than one
httpserivice/remoteobject result to finish?

 

  


Hi 

my application needs to wait until two (or more) resultHandlers to get
their
results and use them together.

for example,

<mx:RemoteObject id="myRO" destination="test"
fault="FaultHandler(event)">
<mx:method name="getList1" result="handleList1Result(event)"/>
<mx:method name="getList2" result="handleList2Result(event)"/>
</mx:RemoteObject>

at application creationComplete, it calles myRO.getList1() and
myRO.getList2()

what can i do to make sure i get both results before i do anything else?

i know it can call myRO.getList1(), then in the
handleList1Result(event:ResultEvent), after it gets the list1 result,
then
it calls myRO.getList2(), 

but i would like to know a better, more clear way.

thanks

C

-- 
View this message in context:
http://www.nabble.com/how-to-wait-for-more-than-one-httpserivice-remoteo
bject-result-to-finish--tp25067471p25067471.html
<http://www.nabble.com/how-to-wait-for-more-than-one-httpserivice-remote
object-result-to-finish--tp25067471p25067471.html> 
Sent from the FlexCoders mailing list archive at Nabble.com.




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner <http://www.mailscanner.info/> , and is

believed to be clean. 

Reply via email to