In the debugger: event.result seems to be of type ObjectProxy It shows a child of type Object that in turn contains a "root" Object corresponding to a data member of my Expr class called root of a type called Node. In addition to this child object, event.result also shows a "root" child Object. Since my method returns an Expr object, what I'd expect to see is event.result to be of type Expr and to be able to do: var expr:Expr = Expr(event.result); var node:Node = expr.root;
Thanks Vijay --- In [email protected], "michael_ramirez44" <[EMAIL PROTECTED]> wrote: > > Loop through the properties on the event.result to see if it does > contain the same public properties as you Expr.as class. > > Michael Ramirez > > --- In [email protected], "moonusamy" <vijay.k.ganesan@> > wrote: > > > > > > I'm using RemoteObject to invoke a server-side Java POJO method that > > returns an object of type com.foo.Expr. I have Expr.java and Expr.as > > with Expr.as annotated with [Bindable] and > > [RemoteClass(alias="com.foo.Expr")] > > > > I try to reference the returned value in the result handler in my > mxml > > as follows: > > private function fooResultHandler(event:ResultEvent):void > > { > > myexpr = Expr(event.result); > > > > TypeError: Error #1034: Type Coercion failed: cannot convert > > mx.utils::[EMAIL PROTECTED] to com.foo.Expr > > > > I expect event.result to be of type com.foo.Expr which it doesn't > seem > > to be. What do I need to do to get to the object of type Expr that > my > > method invocation returns? > > > > Thanks > > Vijay > > >

