That can't be done. You need to add a result handler to service.getData method and do your data manipulation in that method with the result of the remote object call.

Paul.


On 28/05/2009, at 1:52 PM, mhbmarcos wrote:



i have a mxml component, and this have a textField, in the focusOut of ths field, i have a handler,

public function focusOutHandle(e:Event): void{
....
var data:Object = service.getData();"invoke remote Object sync";
....
/*working with data variable */
data.set.....;
data.get.....;
trace(data);
}

and, i need that service.getData() be "sync" invocation to remote Object, and not be async.
are you understand me?
is it posible ??

thanks

--- In [email protected], Fotis Chatzinikos <fotis.chatzini...@...> wrote:
>
> I do not get it... What is your problem?
>
> On Thu, May 28, 2009 at 8:19 PM, mhbmarcos <mhbmar...@...> wrote:
>
> >
> >
> > i undertand, but, the handler event (Focus Out) is into the mxml component,
> > so, the method for example is:
> >
> > public function focusOutHandle(e:Event): void{
> > ....
> > var data:Object = "invoke remote Object sync";
> > ....
> >
> > ....
> > /*working with data variable */
> > data.set.....;
> > data.get.....;
> > trace(data);
> > }
> >
> > are you understand me?
> >
> > so, i need any solution to sync invocation.
> >
> > Thanks
> >
> >
> > --- In [email protected] <flexcoders% 40yahoogroups.com>, Fotis
> > Chatzinikos <fotis.chatzinikos@> wrote:
> > >
> > > yes,
> > >
> > > on focus out call the rpc method and turn the component into a "waiting
> > > data" state,
> > > for example disable it and show a loading indicator.
> > >
> > > When you get the response from the server,
> > > turn the component back to its normal state...
> > >
> > > On Thu, May 28, 2009 at 6:49 PM, mhbmarcos <mhbmarcos@> wrote:
> > >
> > > >
> > > >
> > > > Hi!!!
> > > > i need invoke a RemoteObject in sync way?
> > > > when focus out in textField, execute a method that requiere the value
> > > > returned by RemoteObject, but, this execution must be sync.
> > > > any solution for this?
> > > >
> > > > Thanks
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Fotis Chatzinikos, Ph.D.
> > > Founder,
> > > Phinnovation
> > > Fotis.Chatzinikos@,
> > >
> >
> >
> >
>
>
>
> --
> Fotis Chatzinikos, Ph.D.
> Founder,
> Phinnovation
> fotis.chatzini...@...,
>



Reply via email to