0 Replies Latest reply on Jul 23, 2010 1:52 AM by fulon

    Another issues, about v10.0 and v10.1 (Linux flash player)

    fulon

      Hi all,

       

      This time i met this problem and weird,

      Below is my code and the BOLD words are for flash AS 2.0, and the rest part are returns from C++.

       

      Same code works on Linux Flash Player V10.1 can sucessfully XML socket connection.

      But this is not works on Linux Flash Player V10.0. (socket connection fail).

       

       

      //*********************************************************************
      var mySocket = new XMLSocket();
      var msgObj = new XML();
      var msgSend = new XML();
      serverIP = "127.0.0.1";
      serverPort = "12321";
      //=================================
      function connect() {
      mySocket.onConnect = handleConnect;
      mySocket.onClose = handleClose;
      mySocket.onXML = handleInput;
      mySocket.connect(serverIP,serverPort);
      }

      //=================================
      function handleConnect(success) {
      if (success) {
        mySocket.connected = true;
        trace("connection success");
      } else {
        trace("connection failed");
      }
      }
      //*********************************************************************

       

       

      //


      "<cross-domain-policy><allow-access-from domain=\"*\" to-ports=\"12321\"/></cross-domain-policy>"