# Why does xml or load vars or anything not work?

**URL:** <https://forum.kirupa.com/t/why-does-xml-or-load-vars-or-anything-not-work/197281>\
**Category:** Uncategorized\
**Created:** [August 15, 2006, 6:26am UTC](https://forum.kirupa.com/t/why-does-xml-or-load-vars-or-anything-not-work/197281 "2006-08-15T06:26:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kdd](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@kdd](https://forum.kirupa.com/u/kdd)\
**Post date:** [August 15, 2006, 6:26am UTC](https://forum.kirupa.com/t/why-does-xml-or-load-vars-or-anything-not-work/197281/1 "2006-08-15T06:26:51Z")

</div>

this code is inside a button’s on(release)

var stuff:LoadVars = new LoadVars();  
var resultStuff:LoadVars = new LoadVars();

stuff.name = \_global.name;

stuff.sendAndLoad(“[http://someWebsite.php](http://someWebsite.php) stuff”,resultStuff,“POST”);

stuff.onLoad = function(success)  
{  
trace(resultStuff.something);  
}

this never works! moreover, if i put the onLoad function on the top it still doesn’t work! i have to use LoadVars.prototype.onLoad. can someone please explain me why? thanks.

it only traces if i move to another frame, why that?
