Hi Akhil,

The callLater() method queues an operation to be performed for the next
screen refresh, rather than in the current update. Without the callLater()
method, you might try to access a property of a component that is not yet
available. The callLater() method is most commonly used with the
creationComplete event to ensure that a component has finished being created
before Flex proceeds with a specified method call on that component.

The example in the below link uses a call to the callLater() method to
ensure that new data is added to a DataGrid before Flex tries to put focus
on the new row. Without the callLater() method, Flex tries to focus on a
cell that does not exist and throws an error:

Link:
http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001438.html

Regards,
Kalpesh Mahida


On Fri, Mar 27, 2009 at 1:14 AM, Shaleen Jain <[email protected]>wrote:

>
> Akil,
>
> What is your exact problem?
> How you are currently calling that function which need to be in sync
> with your result handler?
>
>
> -Shaleen Jain
> http://shaleenjain.blogspot.com
>
> On Mar 26, 7:28 pm, Akhil Agrawal <[email protected]> wrote:
> > i have to cause the that part of code on wait until the query result
> > is not returned in resultHandler of remoteobject that is after the
> > remoteobject call
> > how can i do this. how can i synchronize the resulthandler with
> > execution of my code
> > query result may take several minutest to return
> > plzzz help
> >
> > thanks
> >
> > regards
> > akhil
> >
> > On Mar 26, 2:21 pm, kalpesh mahida <[email protected]> wrote:
> >
> > > Hi,
> >
> > > I think callLater() function might help to do so here is some
> description
> > > from the adobe doc.
> >
> > > public function callLater(method:Function, args:Array = null):void
> > > <../../specialTypes.html#void>
> >
> > > Queues a function to be called later.
> >
> > > Before each update of the screen, the Flash Player calls the set of
> > > functions that are scheduled for the update. Sometimes, a function
> should be
> > > called in the next update to allow the rest of the code scheduled for
> the
> > > current update to be executed. Some features, like effects, can cause
> queued
> > > functions to be delayed until the feature completes.
> >
> > > more details<
> http://livedocs.adobe.com/flex/201/langref/mx/core/UIComponent.html#c...>
> >
> > > HTH
> >
> > > Regards,
> >
> > > Kalpesh Mahida
> >
> > > On Wed, Mar 25, 2009 at 3:37 PM, Ravi Mishra <[email protected]>
> wrote:
> >
> > > > Do you mean to say that you have a number of service calls in your
> > > > application and you dont want the others to call until first one
> > > > completes?
> >
> > > > If this is the case then you can call all other services in the
> > > > resultHandler function of the first query, which in turn will be
> > > > triggered at the result event of first service.
> > > > And the result event fires only when you get the response
> successfully
> > > > from that service.
> >
> > > > HTH,
> >
> > > > -Ravi
> >
> > > > On Mar 25, 2:55 pm, Akhil Agrawal <[email protected]> wrote:
> > > > > actually i m am to display result of query in flex and there may be
> > > > > many query to i m maintain this at runtime
> > > > > so i want that utill first query complete no further execution
> should
> > > > > take place so that i can handle the result
> >
> > > > > On Mar 25, 7:33 am, HISSAM <[email protected]> wrote:
> >
> > > > > > What kind of halt you are looking for??
> >
> > > > > > I guess you are using the result event?
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to