0 Replies Latest reply on Aug 14, 2009 10:24 PM by Ron Colmen

    Need advice on server side actionscript

    Ron Colmen Level 2

      Hello and thanks for taking your time in answering my question!

       

      Question :

      In my website I've used BitmapData class to capture few screen areas and to be loaded in to UI Loaders. I need advice in writing the actionscript to send those images to the server PHP.

       

      Current AS:

      var senderLoad:LoadVars = new LoadVars();
      var receiveLoad:LoadVars = new LoadVars();

      sender.onRelease = function () {
      senderLoad.username = username.text;

      senderLoad.sendAndLoad("web/send.php",receiveLoad);
      }

      receiveLoad.onLoad = function () {
      if(this.sentOk) {
        _root.gotoAndStop("success");
      }
      else {
        _root.gotoAndStop("failed");
      }
      }