fluorinefx (AMF3 for .NET)

 

Fluorine是与AmfPHP、OpenAmf类似的但是用于.net平台的开源AMF网关。可以应用在Flex2与.net(1.1与2.0,3.5)中。
通过使用Fluorine可以在Flex,flash中直接调用.net程序中类的相应方法,并且完成了Class Mapping。也就是说可以传递一个复杂对象作为参数。

首先先从官网http://www.fluorinefx.com/下载安裝.

 

安裝完成后,打开vs2005,新建网站就多了一个fluorinefx的套件可以选择。

fluorinefx的网站会加入加入这些DLL文件

 

 

简单的hello world:

  1. using System;
  2. using System.Data;
  3. using System.Configuration;
  4. using System.Web;
  5. using System.Web.Security;
  6. using System.Web.UI;
  7. using System.Web.UI.WebControls;
  8. using System.Web.UI.WebControls.WebParts;
  9. using System.Web.UI.HtmlControls;
  10. using FluorineFx;
  11. using FluorineFx.AMF3;
  12. /// <summary>
  13. /// FlashRemoting 的摘要描述
  14. /// </summary>
  15. [RemotingService("")]
  16. public class FlashRemoting
  17. {
  18.     public FlashRemoting()
  19.     {
  20.         //
  21.         // 
  22.         //
  23.     }
  24.     public string Echo(string text)
  25.     {
  26.         return "FlashRemoting Gateway hello world: " + text;
  27.     }
  28. }

 

打开fluorinefx提供的console.aspx來测试
然后用flash写个as3代码测试,OK.

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值