0 Replies Latest reply on May 23, 2008 4:45 AM by surathp

    Usage of flash.net.Socket in Flex on IE

    surathp
      public function isNetworkAlive() : void{
      socket = new Socket();
      socket.addEventListener(Event.CONNECT,connectNetworkHandler);
      socket.addEventListener(Event.CLOSE,closeNetworkHandler);
      socket.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler);
      socket.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);


      try{
      //Get The Server URL
      var url: String = Application.application.url;
      //Get The IP Address
      var ipAdd : String = url.substring((url.indexOf(":") + 3),url.lastIndexOf(":"));
      socket.connect(ipAdd,8443);
      }catch(er : Error){
      NarusAlert.show("Network is down/disconnected. Please re-login again after network is up.");
      model.reset();

      }

      }

      socket.connect(ipAdd,8443); is throwing SecurityErrorEvent on IE only. Works fine on FireFox and Opera.
      I am using Flex 2x.
      I have done the Adobe Flash Player 9 Activex set up for IE.
      Can anybody please provide solution for this.

      Thanks & Regards,
      Surath Patnaik