Apache flex Flex中BlazeDS的RemoteObjecting

Apache flex Flex中BlazeDS的RemoteObjecting,apache-flex,blazeds,Apache Flex,Blazeds,我有一个blazeds amf url,它是。事实上,我不知道这是什么被称为amf网关或什么。但基本上,我如何对blazeds位置(服务/目的地)执行remoteobject调用,然后像使用web服务一样使用它,而不必在flex端设置xml文件或任何内容。BlazeDS端工作正常,但基本上,我需要知道mxml文件中的代码,我需要使用这些代码来实现这一点…a)创建远程对象(您可以从mxml或as执行此操作): c) 调用以下方法: remoteObject.method1("test"); va

我有一个blazeds amf url,它是。事实上,我不知道这是什么被称为amf网关或什么。但基本上,我如何对blazeds位置(服务/目的地)执行remoteobject调用,然后像使用web服务一样使用它,而不必在flex端设置xml文件或任何内容。BlazeDS端工作正常,但基本上,我需要知道mxml文件中的代码,我需要使用这些代码来实现这一点…

a)创建远程对象(您可以从mxml或as执行此操作):

c) 调用以下方法:

remoteObject.method1("test");
var channelSet:ChannelSet = new ChannelSet();
var channel:AMFChannel = new AMFChannel("amf", "blazeds amf endpoint , for example http://localhost:8080/myapp/messagebroker/amf");
channelSet.addChannel(channel);             
remoteObject.channelSet = channelSet;               
remoteObject.method1("test");