Jul 05

I download and study Flex have some days,but i have not can be use it good,i’m going to miss it.

today,adobe flex builder gave me a message,i’m very happy,the message is say:

If this message is not displaying properly, click here to launch your browser.http://www.adobe.com/2006/mxml” creationComplete=”consumer.subscribe()”> <mx:Script> <![CDATA[ import mx.messaging.messages.AsyncMessage; import mx.messaging.messages.IMessage; private function send():void { var message:IMessage = new AsyncMessage(); message.body.chatMessage = msg.text; producer.send(message); msg.text = ""; } private function messageHandler(message:IMessage):void { log.text += message.body.chatMessage + "\n"; } ]]> </mx:Script> <mx:Producer id=”producer” destination=”chat”/> <mx:Consumer id=”consumer” destination=”chat” message=”messageHandler(event.message)”/> <mx:Panel title=”Chat” width=”100%” height=”100%”> <mx:TextArea id=”log” width=”100%” height=”100%”/> <mx:ControlBar> <mx:TextInput id=”msg” width=”100%” enter=”send()”/> <mx:Button label=”Send” click=”send()”/> </mx:ControlBar> </mx:Panel></mx:Application>unsubscribe-na@adobesystems.com. Alternatively, you may mail your unsubscribe request to:

Thanks for your continued interest in Adobe ® Flex ® Builder™

As part of your trial, we are sending you these e-mails on a regular basis. This e-mail highlights Activa Live Chat, an Adobe Flex based live chat application, and explains how to build your own chat application using Adobe Flex and Adobe Blaze DS.

Don’t forget to check out the Flex Developer Center for in-depth articles and tutorials about Adobe Flex.
Get inspired by Activa Live Chat!

Activa Live Chat allows website owners to easily provide live, online support to visitors and customers through instant, text-based chatting. Activa Live Chat uses a Flex based UI for website visitors as well as chat operators, and PHP for the chat services backend.
Build your own chat application

Flex supports publish and subscribe messaging through the open source BlazeDS Message Service. The Message Service manages a set of destinations that Flex clients can publish and subscribe to. Flex provides two components, Producer and Consumer, that you use to publish and subscribe to a destination. To subscribe to a destination, you use the subscribe() method of the Consumer class. When a message is published to a destination to which you subscribe, the message event is triggered on the Consumer.

Using the BlazeDS publish/subscribe capability is easy. Here is an example of a simple chat application:

<?xml version=”1.0″ encoding=”utf-8″?> <mx:Application xmlns:mx=”

Messaging destinations are configured in a messaging-config.xml in the root of your Flex application. A key element of a destination configuration is the channel used to exchange data between the client and the server. Using BlazeDS, a messaging destination typically uses a streaming or a polling channel.
Using a streaming channel, the server response is left open until the channel connection is closed, allowing the server to send down incremental chunks of data to the client. HTTP connections are not duplex. This means that a single streaming AMF or HTTP channel actually requires two browser HTTP connections in order to send data in both directions. One for the streamed response from the server to the client that the channel hangs on to, and a second transient connection, drawn from the browser pool only when data needs to be sent to the server. This second transient connection is immediately released back to the browser’s connection pool.
A polling channel can be configured with a simple interval or with a sever wait if data is not immediately available (long polling). In either case, each poll response completes the request. Browser HTTP 1.1 connections are persistent by default, so the browser will likely recycle existing HTTP connections to send subsequent poll requests, which lowers the overhead for polling.
Stay up to date

The next e-mail contains helpful information about debugging your application. Get a head start by browsing the Flex 3 Getting Started Wiki.

Sincerely,

The Adobe Flex Team

Flex Applications

Flex showcase
Sample applications Free Online Support

Flex coders e-mail list
Flex forums
Flex user groups Online Video Training

lynda.com
Total Training

Flex books Buy Adobe Flex Builder

Adobe, the Adobe logo, Flex, and Flex Builder are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries. All other trademarks are the property of their respective owners.

© Copyright 2008 Adobe Systems Incorporated. All rights reserved.

This is an advertising message from Adobe Systems Incorporated, its affiliates and agents (”Adobe”), 345 Park Avenue, San Jose, CA 95110 USA. If you’d prefer not to receive e-mail like this from Adobe in the future, please click here to unsubscribe or send an e-mail to

UNSUBSCRIBE
Adobe Systems Incorporated
P.O. Box 2205
Beaverton, OR 97075

Your privacy is important to us. Please review Adobe’s online Privacy Policy by clicking here: www.adobe.com/misc/privacy.html

This is an auto-generated e-mail. Please do not respond to this message for customer service issues. Please visit our website at www.adobe.com/support for more information.

Unsubscribe from the Flex Builder Getting Started messages.

i think i should study flex along,yes