Erik,
First of all, unless you are sending variables from the Flash timeline to the PHP file, you don't need the other 2 arguments in the loadVariables method -- you can get away fine with just this:
movieClip.loadVariables("Getvariables.php");
...where "movieClip" is the timeline into which the variables will be loaded. Remember Flash scopes variables similar to JavaScript, so a variable named nReturn in the root is separate from a variable of the same name in a separate movie clip under root. If you wish to load the variables into the same timeline the script is written, use this:
this.loadVariables("Getvariables.php");
In fact, you should try not to use the "Location" argument as you can get away with using a prepender most of the time:
_level0.loadVariables("Getvariables.php", "POST");
Secondly, don't use a do...while loop. A lot of people might tell you to set up a timeline loop to control your actions when the data gets loaded, but I prefer using an onClipEvent(data) handler. All you have to do is set up a blank MC, then from its parent, use this code:
blankMC.loadVariables("Getvariables.php"); //from the blankMC's _parent
Attach this to the blankMC clip:
onClipEvent (data) {
parent.nReturn = this.nReturn;
parent.Ok = this.Ok;
}
good luck...