Hi
Guys
i'm
new to flex , but it seems that you talk about different things, one talks about
async calls of web service and the other about multithreading not
supported.
as far
as i know - async can only be implemented in threads otherwise its synchronous ,
so what is the limitation exactly ?
Shlomi
From: Carson Hager [mailto:[EMAIL PROTECTED] Sent: Monday, March 07,2005 10:29 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Equivalent to Thread.sleep() I understand that it's a web application but that's hardly
any excuse. Nothing in the Java or .NET world requires you to handle web
service calls asynchronously. This is unique to Flash/Flex.
Carson ____________________________________________ Carson Hager Email:
[EMAIL PROTECTED] Take PowerBuilder to the Web with
EAF 4.0 From: Robert Stuttaford [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 3:21 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Equivalent to Thread.sleep() Lock down the important
bits of your interface, set the cursor to busy, display a processing animation...
and revert everything on a result. It is after all a web/network application
J Unfortunately, you're
asking for a change in the Flash Player, not in Flex as such. Who knows, perhaps
Flash Player 8 a.k.a. Maelstrom will fulfill your requirement for
multi-threading! I don't know nearly
enough to even guess if they possibly might consider toying with the idea some
time in the next 3 releases -grin- Good
luck! Robert From: Carson
Hager [mailto:[EMAIL PROTECTED] What if I have to
interrogate the database or some other server side operation to determine the
business rule response? ____________________________________________
Carson Hager Email:
[EMAIL PROTECTED] Take PowerBuilder to the Web with
EAF 4.0 From: Robert
Stuttaford [mailto: Entrust your business
logic processing to the client-side; after all, it isn't just HTML and
_javascript_ any more J From: Carson
Hager [mailto:[EMAIL PROTECTED] There are plentyof
occasions where we are using web services for something other than data
feeds. For example, there are plenty of business rule checks that we need
to perform during the course of some application logic, the results of which
will determine the path within conditional logic. We need to do server
processing to get a response to our business rule checks and remoting is not an
option due to the proprietary nature of the binary protocol and the need for our
app to run outside of the firewall. This would be ridiculous to do inan
asynch fashion. Only having asynch capability in Flex is yet again another
feather in its Hello World cap. This is a major issue if it is indeed
the case. I appreciate your help
but I really don't understand how anyone can think this is
acceptable. ____________________________________________
Carson Hager Email:
[EMAIL PROTECTED] Take PowerBuilder to the Web with
EAF 4.0 From: Tracy
Spratt [mailto:[EMAIL PROTECTED] As far as I know, this
can't be done. The flash player is single threaded, so nothing else
happens in a timer loop, nothing will "return". It seems like there should
be a way to hack this, maybe using doLater() and setInterval(), but I have never
heard of one. What is your functional
reason for not using the result event? Once I got used to async handling,
using the ACT (asynchronous call token) pattern with the "call" object, I go
over my irritation with the relative complexity and learned to like the async
data calls. From: Carson
Hager [mailto:[EMAIL PROTECTED] Basically, I'm trying
to stop executiong of a function until the result returns. When it returns,I
want to get the result and return it as the return value to the
function..basically a wrapper around a web service call that provides a
synchronous response to the calling code. Any ideas on how to do
this? Thanks, ____________________________________________
Carson Hager Email:
[EMAIL PROTECTED] Take PowerBuilder to the Web with
EAF 4.0 From: Dimitrios
Gianninas [mailto:[EMAIL PROTECTED] Hi, There
is no equivalent. Are you try to make sure that when one call is finished the
next one is executed (but only when the first one completed)? You can easily
achieve this by making the second call once the result for the first one has
been received. Jimmy
Gianninas Software
Developer -
Optimal
Payments Inc. From: Carson
Hager [mailto:[EMAIL PROTECTED] Is
there something in Flex that will put a thread to sleep for a period of
time? I'm implementing a framework to effectively allow synchronous
invocation of web services from action script. I need to be able to put the
thread to sleep for a period of time and check to see whether the results have
made it back to the internal result handler. I've searched the docs and
have not found anything yet. Any clever ideas how to do
this? Thanks,
____________________________________________
Carson Hager Email:
[EMAIL PROTECTED] ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ |
Title: Equivalent to Thread.sleep()
- Re: [flexcoders] Equivalent to Thread.sleep() Shlomi Cohen
- Re: [flexcoders] Equivalent to Thread.sleep() Manish Jethani
- Re: [flexcoders] Equivalent to Thread.sleep() Dave Carabetta