Flex4使用RemoteObject时前台传递参数与服务器方法参数映射

没有映射会出现类似下面的错误:

The expected argument types are (....)  
but the supplied types were (flex.messaging.io.amf.ASObject)   
and converted to (null)

解决方法:前台传递的参数对象需要添加元数据申明

[Bindable]  
[RemoteClass(alias="com.card.entity.Users")]  
public class Users  
{  
public var id:int;  
....

你可能感兴趣的:(Flex4使用RemoteObject时前台传递参数与服务器方法参数映射)