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" <[EMAIL PROTECTED]> 
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
>


Reply via email to