AMF

 <h1 id="bks_cofycksp">AMF(是Action Message Format的缩写)是在flash和flex中remoting的一种方式格式。</h1>
  AMF is a binary format based loosely on the Simple Object Access Protocol (SOAP). It is used primarily to exchange data between an Adobe Flash application and a database, using a Remote Procedure Call.
  Each AMF message contains a body which holds the error or response, which will be expressed as an ActionScript Object.
  AMF was introduced with Flash Player 6, and this version is referred to as AMF 0. It was unchanged until the release of Flash Player 9 and ActionScript 3.0, when new data types and language features prompted an update, called AMF 3.[1]
  Adobe Systems published the AMF binary data protocol specification[2] on December 13, 2007 and announced that it will support the developer community to make this protocol available for every major server platform.
  AMF协议是基于Http协议的.
  它的内容处理过程大致是这样:
  1.从客户端获取Http请求(Request)流.
  2.对流进行解串行化(Deserialize),得到服务器端程序能够识别的数据,并建立一个响应(Response)消息
  3.Debug开始
  4. 对流进行各种处理(记录、许可、服务)得到返回值
  5.对响应流进行串行化
  6.发送Http响应给客户端
  Flash ActionScript 数据类型在AMF协议中对应的值是:
  Number 0x00;
  Boolean 0x01;
  String 0x02;
  Object 0x03;
  MovieClip 0x04;
  Null 0x05;
  Undefined 0x06;
  Reference 0x07;
  ECMAArray 0x08;
  ObjectEnd 0x09;
  StrictArray 0x0a;
  Date 0x0b;
  LongString 0x0c;
  Unsupported 0x0d;
  Recordset 0x0e;
  XMLObject 0x0f;
  TypedObject(Class) 0x10;
  <h1>
  </h1>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值