1 Reply Latest reply on Mar 13, 2008 5:47 AM by SujitG

    Messaging

    Gene Godsey Level 1
      I am new with the whole messaging process and I was going through some training code and I do not understand how a message is sent or received.
      The language in the book is Producer and consumer.

      Here is a block of code that I am working with.

      ----------------------------------------------
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml">
      <mx:Script>
      <![CDATA[
      import mx.messaging.messages.AsyncMessage;
      public function sendMessage():void{
      var message:AsyncMessage = new AsyncMessage();
      message.body = "body";
      producer1.send(message);
      }
      ]]>
      </mx:Script>
      <mx:Producer id="producer1" />
      </mx:Application>
      ----------------------------------------------

      Is there config file that I need to prepar for this to happen?

      Thanks in advance.

      Gene