您的位置:首页 > 移动开发 > Objective-C

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

2013-07-08 10:34 253 查看
没有映射会出现类似下面的错误:

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;
....
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐