Use LocalConnections : LocalConnection « Data Model « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Data Model » LocalConnectionScreenshots 
Use LocalConnections
Use LocalConnections
          

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
        
            import flash.net.LocalConnection;

            private var _localConnection:LocalConnection = new LocalConnection(  );

            private function sendMessage(event:MouseEvent):void {
                _localConnection.send("dataChannel""displayMessage", message.text);
            }
      
    </mx:Script>
    <mx:VBox id="vbox">
        <mx:TextArea id="message" />
        <mx:Button click="sendMessage(event)" />
    </mx:VBox>
</mx:Application>

   
    
    
    
    
    
    
    
    
    
  
Related examples in the same category
1.Method declared as public as it is exposed as a method to a local connection.
w___w___w_.__j___a__v___a___2s._c__o___m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.