惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
T
Threatpost
Latest news
Latest news
N
News | PayPal Newsroom
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Help Net Security
Help Net Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
AI
AI
Simon Willison's Weblog
Simon Willison's Weblog
TaoSecurity Blog
TaoSecurity Blog
The Last Watchdog
The Last Watchdog
L
LINUX DO - 热门话题
Google DeepMind News
Google DeepMind News
T
Threat Research - Cisco Blogs
O
OpenAI News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
The Exploit Database - CXSecurity.com
NISL@THU
NISL@THU
Application and Cybersecurity Blog
Application and Cybersecurity Blog
S
Securelist
小众软件
小众软件
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Martin Fowler
Martin Fowler
S
SegmentFault 最新的问题
Cisco Talos Blog
Cisco Talos Blog
云风的 BLOG
云风的 BLOG
AWS News Blog
AWS News Blog
GbyAI
GbyAI
N
News and Events Feed by Topic
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
美团技术团队
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
S
Schneier on Security
博客园 - 聂微东
V2EX - 技术
V2EX - 技术
T
Troy Hunt's Blog
SecWiki News
SecWiki News
S
Secure Thoughts
B
Blog RSS Feed
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
腾讯CDC
H
Heimdal Security Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Apple Machine Learning Research
Apple Machine Learning Research
月光博客
月光博客
www.infosecurity-magazine.com
www.infosecurity-magazine.com
P
Privacy International News Feed

博客园 - 醉人的烟圈

北京ActionScript圈第二次聚会 火山免费VPS推荐码·最新最全收集 SWF文件结构大解剖 [转]flash在C#中的应用 [转]在Winform(C#)中使用Flash控件 优秀的软件企业为何倒下? 身体不好的别进来,怕你笑死! 强贴,搜集的搞笑小短句! 重写NetConnection.call方法 资源:孙鑫《VC++深入详解》视频 计算机专业英语名词解释大汇总 [转]程序员谈如何掌握计算机专业英语 [转]A*寻路,二叉堆优化及AS3实现 12个网站帮助你学习 Flash / ActionScript 生活短语 [转]QQ群里一位朋友发的,越往后越让人深思 [转]拉D大叔的中国行 [转]西安女孩:我在上海的第一年 [转]高考零分作文
AS3 remoting For .NET学习(一)
醉人的烟圈 · 2008-07-15 · via 博客园 - 醉人的烟圈

先是参照:http://bbs.blueidea.com/viewthread.php?tid=2774850
注意的是版本好像跟现在下的FluorineFx版本不一样,引用反正是不同了.

1.新建一个FluorineFx网站
2.添加一个App_code文件夹,并新建一个类文件HelloWorld.cs


 1using System;
 2using System.Data;
 3using System.Configuration;
 4using System.Web;
 5using System.Web.Security;
 6using System.Web.UI;
 7using System.Web.UI.WebControls;
 8using System.Web.UI.WebControls.WebParts;
 9using System.Web.UI.HtmlControls;
10using FluorineFx;   //这里跟论坛里的引用不一样了
11/// <summary>
12/// HelloWord 的摘要说明
13/// </summary>

14
15
16[RemotingService()] //特性 这句一定要有,要不没反应
17
18public class HelloWorld
19{
20    public HelloWorld()
21    {
22
23    }

24    public string Hello(string str)
25    {
26        return ".NET返回数据: " + str;
27    }

28}

不一样的部分已经注释上了


 1package 
 2{
 3    import flash.display.Sprite;
 4    import flash.events.*;
 5    import flash.net.*;
 6    
 7    public class Main extends Sprite
 8    {
 9        private var nc:NetConnection;
10        private var rs:Responder;
11        public function Main():void
12        {
13            rs = new Responder(onResult, onStatus);
14            nc = new NetConnection();
15            nc.connect("http://localhost/remoting/Gateway.aspx");
16            nc.call("HelloWord.Hello", rs, "世界人民向你问好");
17        }

18        private function onResult(value:*):void
19        {
20            trace("*****************************");
21            trace(value);
22            trace("*****************************");
23        }

24        private function onStatus(value:Object):void
25        {
26            trace("--------------------------");
27            for (var i:String in value) 
28                trace(i + "" + value[i]);
29            }
 
30
31        }

32    }

33}