小试了一下flash cs3 的Remoting,居然也可以,还是因为本来就是可以的呢?服务端的配置是openamf,是之前flash8或者更早版本用的.因为早前有看到openamf好像没有更新了什么的消息,又或者现在虽然包改了,接口什么的不变?
package
{
import flash.display.MovieClip;
import flash.net.Responder;
import flash.net.NetConnection;
public class fltest extends MovieClip
{
private var nc:NetConnection;
private var rs:Responder;
function fltest()
{
var params:String = ' | Flash CS3 Remoting!';
rs = new Responder(onResult, onError);
nc = new NetConnection;
nc.connect("http://localhost:8080/emsshop/gateway");
nc.call("hello.getString", rs, params);
}
private function onResult(result:*):void
{
trace(result);
}
private function onError(error:Object):void{
trace("error:"+error.description);
}
}
}
public class HelloWorld {
public HelloWorld(){
}
public String getString(String param) {
return "Hello World!"+param;
}
}
再就是一些配置信息
<bean id="hello" class="com.zkx.openamf.HelloWorld"/>
参考资料:
http://www.flashxm.com/?p=144
分享到:
相关推荐
Flash Remoting官方帮助手册
flash remoting mx 用于flash数据库编程
使用FluorineFx和Flash Remoting+net.pdf
学习 remoting 学习 remoting 学习 remoting 学习 remoting 学习 remoting 学习 remoting 学习 remoting 学习 remoting
remoting分布式技术入门教程,不可多得
Remoting双向通信v1.0
分布式 c# Remoting初学分布式 c# Remoting初学分布式 c# Remoting初学分布式 c# Remoting初学分布式 c# Remoting初学分布式 c# Remoting初学分布式 c# Remoting初学
本系列文章将简单介绍Remoting的一些基本概念,包括 应用程序域、Remoting构架、传值封送(Marshal by value)、传引用封送(Marshal by reference)、Remoting的基本操作、分离服务程序元信息和实现、在Windows Service...
Microsoft .NET RemotingMicrosoft .NET Remoting Microsoft .NET RemotingMicrosoft .NET Remoting Microsoft .NET RemotingMicrosoft .NET Remoting
remoting 广播
remoting技术
Remoting Remoting 之SERVER Remoting 之SERVER
利用Remoting传送文件利用Remoting传送文件利用Remoting传送文件利用Remoting传送文件利用Remoting传送文件
Remoting基本原理及其扩展机制 Remoting基本原理及其扩展机制 Remoting基本原理及其扩展机制 Remoting基本原理及其扩展机制
C# .Net Remoting 两个简单示例,一个为普通的,一个为工厂模式的,更为安全一点.简单范例却是打好了一个框架,想要做东西,扩展就可以了. 使用说明和运行截图:http://www.our-code.com/news/2010105/n4920152.html 关于2...
Remoting事件(服务端广播改进).
spring-remoting.jar spring-remoting.jar
VB.NET Remoting 技术手册VB.NET Remoting 技术手册