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

推荐订阅源

C
CXSECURITY Database RSS Feed - CXSecurity.com
Stack Overflow Blog
Stack Overflow Blog
月光博客
月光博客
T
Threat Research - Cisco Blogs
小众软件
小众软件
有赞技术团队
有赞技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
Apple Machine Learning Research
Apple Machine Learning Research
C
Cyber Attacks, Cyber Crime and Cyber Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Tailwind CSS Blog
Cisco Talos Blog
Cisco Talos Blog
V
V2EX
博客园 - 【当耐特】
C
Cybersecurity and Infrastructure Security Agency CISA
Hugging Face - Blog
Hugging Face - Blog
The Cloudflare Blog
The Last Watchdog
The Last Watchdog
Simon Willison's Weblog
Simon Willison's Weblog
T
Threatpost
S
Secure Thoughts
O
OpenAI News
P
Proofpoint News Feed
S
SegmentFault 最新的问题
Forbes - Security
Forbes - Security
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Application and Cybersecurity Blog
Application and Cybersecurity Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Last Week in AI
Last Week in AI
宝玉的分享
宝玉的分享
Scott Helme
Scott Helme
T
Tenable Blog
A
Arctic Wolf
L
LINUX DO - 热门话题
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
www.infosecurity-magazine.com
www.infosecurity-magazine.com
V
Visual Studio Blog
Hacker News: Ask HN
Hacker News: Ask HN
Hacker News - Newest:
Hacker News - Newest: "LLM"
腾讯CDC
博客园 - Franky
WordPress大学
WordPress大学
Know Your Adversary
Know Your Adversary
博客园_首页
雷峰网
雷峰网
IT之家
IT之家
PCI Perspectives
PCI Perspectives
L
LINUX DO - 最新话题
H
Heimdal Security Blog

博客园 - gzboy

一个flex例子(自定义download progress bar的) AS3的中文学习资料 终于可以让Flash基于C#完美操作数据库了,想开发全flash的,全部读取数据库的个人BLOG... 基于.NET + FMS + SQLSERVER2005 + Flash Remoting(技术)的FLASH播放器开发成功 基于FMS的在线录制例子... - gzboy - 博客园 loadrunner8.0 获取数据库名称与数据库中表名的方法 问个关于SQL 2005同步的问题 Flex2下载地址及注册码 让IIS 6.0支持FLV的方法 残念,我决定放弃Flash Remoting!!! 在Flash中接收来自页面(.NET)的值的方法. 大概看了一下《Flash MX 2004 -- 数据库应用开发 - 基于.NET架构》,感觉有点迷惘了! 在flash remoting for .net中,AS代码是怎样调用aspx中的具体方法呢? 通过Flash Remoting,怎么通过页面主动传递值给Flash player呢? 又出现一个技术难关:Flash remoting的应用 大文件上传组件终于调试成功了... 还是大文件上传的问题,超级郁闷,有相关经验的进来说说... .NET中大文件上传遇到的问题.
调试Flash Remoting中出现的问题.
gzboy · 2006-11-17 · via 博客园 - gzboy

按照网上的例子,做了一个初步的测试.配置如下:

建立文件夹:fr
把flash remoting虚拟目录下的gateway.aspx和web.config 复制到fr目录下
在fr目录下建立bin文件夹
把flash remoting虚拟目录下的bin里面的flashgateway.dll和frconfig.txt 复制到fr\bin下面
在IIS中建立虚拟目录...

建立test1.aspx的代码如下:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="fuck.aspx.cs" Inherits="_Default" %>
<%@ Register TagPrefix ="Macromedia" Namespace = "FlashGateway" Assembly = "flashgateway" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    
<title>无标题页</title>
</head>
<body>
    
<form id="form1" runat="server">
    
<div>
    
<Macromedia:Flash  ID="Flash" runat =server>
    
</Macromedia:Flash>
</body>
</html>

然后在test1.aspx.cs里面的Page_load方法里面加入

 Flash.Result = "Flash remoting!";

然后建立test.swf,建立一个textinput,名字为msg_text,然后编写AS代码,如下:
import mx.remoting.Service;
import mx.rpc.FaultEvent;
import mx.remoting.PendingCall;
import mx.rpc.ResultEvent;
import mx.rpc.RelayResponder;
var myService:Service = new Service("http://localhost/fr/gateway.aspx",null,"fr",null,null);
var pc:PendingCall = myService.fuck();
pc.responder = new RelayResponder(this, "getdata_Result","getdata_Fault");
function getdata_Result(re:ResultEvent)
{
 trace(re.result);
 msg_text.text = re.result;
}
function getdata_Fault(fa:FaultEvent)
{
 trace("error");
 msg_text.text = fa.fault.faultstring;
}

然后IE中输入http://localhost/fr/test.swf,显示正确...
但是在IE中输入http://IP地址/fr/test.swf却无法显示...

有人遇到过这问题吗?