Well you could have both the fault handler
for the first function and the result handler call the 2nd method.
In ActionScript there is no way to “wait” for a function that makes
a network call to complete. If you look in the docs for the Asynchronous
Completion Token pattern you might be able to get some ideas as to how you
could link up calls. I think the Flex book also talks about strategies and you
could see how they might fit into Cairngorm (even though you’re not using
it right now).
Matt
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 30, 2005
5:16 AM
To: [email protected]
Subject: Re: [flexcoders]
ActionScript question
Hi,
it's ok ,
but i can't to put into my second function into
"onResult handler"
because, "this second function"
not must throws always.
Sorry in few words,
i have 2 actionScript function, i must run these
function in called
after first function is called, can you help me
please.
Devis
Abdul Qabiz ha scritto:
>Hi Devis,
>
>As long as first function doesn't call any
asynchronous operation, both
>functions would be execute in an order...
>
>If you are calling some webservice/remoting
method from first function, then
>you can keep second function call in onResult
handler of first function
>call....
>
>That ways, you would be sure that second
function is always called after
>first function is called and results are
received from server...
>
>-abdul
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
>Sent: Wednesday, March 30, 2005 4:48 PM
>To: Flex Coders
>Subject: [flexcoders] ActionScript question
>
>
>Sorry,
>premised, i don't know very well ActionScript,
but can you to explain
>me why ActionScript if have 2 functions
like these
>
>
>delegate.getSchedaMisure(mx.core.Application.application.vopf[0],0,100);
>
delegate.ClonaCicli((CCicliMisureVO)
>event.data,mx.core.Application.application.vopf[0]);
>
>
>i wish that run first function , and until
it is not ended, don't run
>the second function, this in java and C++ for
me it's normal but i don't
>know how ActionScript reason.
>please...
>Bye Devis
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
| Yahoo! Groups Sponsor |
ADVERTISEMENT
![click here]() | |
![]() |
Yahoo! Groups Links