# sendAndLoad (it sends but not loads)

**URL:** <https://forum.kirupa.com/t/sendandload-it-sends-but-not-loads/208847>\
**Category:** flash\
**Created:** [December 3, 2006, 4:21pm UTC](https://forum.kirupa.com/t/sendandload-it-sends-but-not-loads/208847 "2006-12-03T16:21:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![W84me](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/w84me/32/1257_2.png) [@W84me](https://forum.kirupa.com/u/W84me)\
**Post date:** [December 3, 2006, 4:21pm UTC](https://forum.kirupa.com/t/sendandload-it-sends-but-not-loads/208847/1 "2006-12-03T16:21:09Z")

</div>

Hi all!

I have a problem with the code below.

It sends the vars to the submit.php but it doesnt load them. All files are in the same folder.

Get the .fla --\> [here](http://www.christomanos.com/ptyxiaki/flash/slider.rar)

```auto
var oListener:Object = new Object();
this.onEnterFrame = function() {
    ratio.text = score;
    lvData.scored = score;
    trace(lvData);
    oListener.click = function(oEvent:Object):Void {
        lvData.sendAndLoad("submit.php", lvRecieved, "POST");
    };
    lvRecieved.onLoad = function(bSuccess:Boolean):Void {
        if (success) {
            trace(this.received);
        } else {
            gotoAndStop(2);
            trace("error");
        }
    };
};
slider.scrollFace.onPress = function() {
    startDrag(this, false, 0, 0, 196, 0);
    this.onEnterFrame = function() {
        score = (this._x/2)/14;
        score *= 100;
        score = Math.floor(score);
        score /= 100;
    };
};
slider.scrollFace.onMouseUp = function() {
    stopDrag();
};
submit.addEventListener("click", oListener);
stop();

```
