9 Replies Latest reply on Aug 17, 2009 6:43 AM by kglad

    Please help fixing this actionscript

    Ron Colmen Level 2

      Could anyone tell me what am I doing wrong here!!!

       

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

       

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

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

      BitmapExporter.gatewayURL = "webaddress/send.php";
      BitmapExporter.addEventListener( "progress", this);

      function save():Void
      {
      // Check if still an export is going on:
      if (BitmapExporter.getStatus() == "idle") {

        BitmapExporter.saveBitmap(bmd, "kline.jpg", "turboscan", 0 );
      }
      }

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