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

推荐订阅源

V2EX - 技术
V2EX - 技术
酷 壳 – CoolShell
酷 壳 – CoolShell
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
阮一峰的网络日志
阮一峰的网络日志
GbyAI
GbyAI
The Cloudflare Blog
小众软件
小众软件
MyScale Blog
MyScale Blog
IT之家
IT之家
H
Help Net Security
宝玉的分享
宝玉的分享
V
Visual Studio Blog
Hugging Face - Blog
Hugging Face - Blog
F
Fortinet All Blogs
博客园_首页
S
SegmentFault 最新的问题
MongoDB | Blog
MongoDB | Blog
The Hacker News
The Hacker News
有赞技术团队
有赞技术团队
Microsoft Security Blog
Microsoft Security Blog
Know Your Adversary
Know Your Adversary
Project Zero
Project Zero
P
Palo Alto Networks Blog
博客园 - 聂微东
罗磊的独立博客
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Engineering at Meta
Engineering at Meta
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
U
Unit 42
Spread Privacy
Spread Privacy
NISL@THU
NISL@THU
Cisco Talos Blog
Cisco Talos Blog
Last Week in AI
Last Week in AI
L
Lohrmann on Cybersecurity
J
Java Code Geeks
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Cyberwarzone
Cyberwarzone
G
Google Developers Blog
C
Cybersecurity and Infrastructure Security Agency CISA
大猫的无限游戏
大猫的无限游戏
Microsoft Azure Blog
Microsoft Azure Blog
L
LangChain Blog
The GitHub Blog
The GitHub Blog
Jina AI
Jina AI
Blog — PlanetScale
Blog — PlanetScale
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LINUX DO - 热门话题
T
Tailwind CSS Blog
雷峰网
雷峰网
C
Cisco Blogs

博客园 - 醉人的烟圈

北京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}