0 Replies Latest reply on Sep 12, 2010 7:00 PM by SOMEONEINTHEWORLD

    Socket policy file, Several Times

    SOMEONEINTHEWORLD

      Hi,

       

      I have posted several posts regarding policy file without any help.  I kindly request anyone who solve this.

       

      I downloaded the file perl version from adobe to serve policy file and ran it.

       

      I started my server which is running in 1324 port.

       

      I am getting the message Client Connected, but the data is not getting exchanged. 

       

      When i run from Flex IDE it works fine.

       

      Please let me know what has to be done to get the data exchanged.

       

       

      //code

       

      import flash.net.Socket;
                  import mx.controls.Alert;
                 
                  public function socketConn():void
                  {
                      var xml:XMLSocket = new XMLSocket();
                     
                      xml.connect("127.0.0.1", 1324);
                     
                      xml.addEventListener(DataEvent.DATA, progressEvent);
                  }
                 
                  public function progressEvent(event:DataEvent):void
                  {
                      Alert.show("ALERT");
                  }

       

       

       

      Thanks