# Need help in locating the error in my script!

**URL:** https://forum.kirupa.com/t/need-help-in-locating-the-error-in-my-script/294551
**Category:** Uncategorized
**Created:** [August 16, 2009, 11:46am UTC](https://forum.kirupa.com/t/need-help-in-locating-the-error-in-my-script/294551 "2009-08-16T11:46:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ron\_ron](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@ron\_ron](https://forum.kirupa.com/u/ron_ron)
#### Post date: [August 16, 2009, 11:46am UTC](https://forum.kirupa.com/t/need-help-in-locating-the-error-in-my-script/294551/1 "2009-08-16T11:46:49Z")

</div>

Could anyone tell me what am I doing wrong here!!! and how to fix it

```auto
 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");
}
}

```
