Simple syntax issue?

Hi,
I just want a function to return true, but after a LoadVars.onLoad
event.

Am I right in assuuming that the return in the onLoad = function below
relates ONLY to that function?

What I want is for the sendLockCheck()
to return true depending on the if statement within the onLoad.

function sendLockCheck() {
var lockCheckResult_lv:LoadVars = new LoadVars();
var lockCheckSend_lv:LoadVars = new LoadVars();
var lockCheckArray:Array = new Array();
lockCheckResult_lv.onLoad = function(success:Boolean) {
_root.loko = lockCheckResult_lv.loko;
if (lockCheckResult_lv.loko != “syn”) {
return (true);
}
};
lockCheckSend_lv.sendAndLoad(“check.php”, lockCheckResult_lv, “POST”);

}

Any help appreciated.

Thanks
Andrew