0 Replies Latest reply on Dec 3, 2007 8:34 PM by finox006

    Flash-PHP text Chating

    finox006
      Hello,
      am developing a chat application in flash using php. here is the code for the flash file:
      on (release, keyPress "<Enter>") {
      if (inputT != "") {
      loadVariables("flashtest.php", _root, "POST");

      inputT = "";
      var param_interval:Number = setInterval(checkParamsLoaded, 225);
      }
      //updateAfterEvent();
      function checkParamsLoaded() {
      if (_root.topNmae == undefined) {
      trace("not yet.");
      } else {
      asd.htmlText += _root.topNmae;
      clearInterval(param_interval);
      }
      }
      }

      and the php code in the server is :

      <?php
      $testVar=$_POST["inputT"];
      print("topNmae=<b>finoy</b> : $testVar<br />");
      ?>

      The problem is that when i use the application, it become heavy to use the memory usage and the application become slow. How can i recover it.