You will need to use the messaging server software, and then use the Producer and Consumer classes in the Flex framework to send and receive messages.
What you need depends on which server you are running on. If you are on the Java stack, you can use BlazeDS and ActiveMQ .
If you download / consume and use different domains, you need to configure the crossdomain file, which allows home connection.
Christophe herreman
source share