English 中文(简体)
如何接收来自 4 变频 4 中燃烧的推力数据
原标题:How to receive push data from blazeds in flex 4

我试图从火焰中接收推力数据。 我发现如何从火焰中发送推力数据, 却没有用户在 < a href=> https://stackoverflow.com/ questions/1872742/how-to-push- data-from- blazeds- none- recieve- message-from-flex-client>> HereE 中发出任何信息。 现在我不知道如何从灵活中知道数据是从服务器发送的以及如何接收这些数据 。 谢谢:

问题回答

要从您共享的链接中提取信息, 您需要做一些事情 。

  1. 您需要声明下面显示的消费者, 消费者会从指定的频道中输入信息 。

  2. 请注意,我将 messessage 属性设置为事件处理器,如下所示:

    private function onMsg(event:MessageEvent):void
    {
        trace("Signal Arrives : "+event.message.body);
    
        //var signal:SignalProcessor = new SignalProcessor ();
        //signal.processMessage(event.message.body);
    }
    
  3. 创建创建创建时将调用的方法 完成您的应用程序, 如以下定义的应用程序

    private function suscribeForMessages():void { //Where consumer is the Id of the Consumer mxml tag. //You need the selector only if you want your client to selectively recieve messages from //the adapter. consumer.selector = "filterID IN( "+userIdVariable+" )"; consumer.subscribe(); }

上面的三步应该能让你站起来跳起来 祝你好运





相关问题
how to represent it in dtd?

I have two element action and guid. guid is a required field when action is add. but when action is del it will not appear in file. How to represent this in dtd ?

.Net application configuration add xml-data

I need to add xml-content to my application configuration file. Is there a way to add it directly to the appSettings section or do I need to implement a configSection? Is it possible to add the xml ...

XStream serializing collections

I have a class structure that I would like to serialize with Xstream. The root class contains a collection of other objects (of varying types). I would like to only serialize part of the objects that ...

MS Word splits words in its XML format

I have a Word 2003 document saved as a XML in WordProcessingML format. It contains few placeholders which will be dynamically replaced by an appropriate content. But, the problem is that Word ...

Merging an XML file with a list of changes

I have two XML files that are generated by another application I have no control over. The first is a settings file, and the second is a list of changes that should be applied to the first. Main ...

How do I check if a node has no siblings?

I have a org.w3c.dom.Node object. I would like to see if it has any other siblings. Here s what I have tried: Node sibling = node.getNextSibling(); if(sibling == null) return true; else ...

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

热门标签