Anil, this is practically not possible as flex is a event driven technology where events triggers in asynchronous fashion.
So practically it is not possible to halt your entire code and wait for some one particular event to execute. but you can do some turn around to get what you want. Normally you will not want to halt the entire code, but yes, the requirement could be to hault a particular piece of code. a few fixes are using dirty flags in your application, using custom events and in some cases timer function would be helpful So in a nutshell you need to program smartly based on your requirement. HTH Thanks, Shaleen Jain http://shaleenjain.blogspot.com On Mar 24, 10:49 pm, "Vaibhav/Steve" <[email protected]> wrote: > Hi Akhil, > Please let me know about the architecture you are following in your > application. > It is completely dependent on the kind of architecture you are > following in your application. > > In cairngorm, this kind of scenarios are taken care of with the help > of events and commands. > > If you forcefully wants to insert delay in your AS code, then you can > simply use thr function setTimeInterval() or setTimeOut() functions, > they take delay and function name as parameters. > > But its not a good approach to follow in data transfer, s many things > depend on bandwith in web application. > > :Vaibhav. > > On Mar 24, 5:40 pm, Akhil Agrawal <[email protected]> wrote: > > > Hi, > > I am calling a java function using remote object for executing a query > > on server and get result it take some time to execute and return > > result.So i want to insert delay in my action script file so that > > until i got the result from remoteobject in resultHandler further part > > of code does not execute > > how can i do this > > > thanx > > > regards > > akhil agrawal --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

