Checklog - gotoAndPlay not working

I hope this is the correct area to post. I tried to create a delay before loadVariablesNum and the attached fla will not work. I want a delay “Loading…”
Then if the Checklog = 12 the login form loads again. I can’t get it to work. It’s driving me crazy!!!

Please help

Here is the code…

Frame 6

stop();
Selection.setFocus(userinput);

this.onEnterFrame = function () {
if(_root.checklog == 11){
gotoAndPlay(‘reg’);
}
if(_root.checklog == 12)
{
_root.gotoAndPlay(‘form’);
_root.status = “User Name & Password Not Found”;
Selection.setFocus(userinput);

}
}

Frame 6 Button
on (release) {
if (_root.user.isWhiteSpace() | _root.user.length == 0 | _root.user == “” | _root.user eq “”) {
Selection.setFocus(userinput);
_root.status = “No User Name Entered”;
}
else if (_root.pass.isWhiteSpace() | _root.pass.length == 0 | _root.pass == “” | _root.pass eq “”) {

status = “No Password Entered”;
Selection.setFocus(passinput);
}
else {gotoAndPlay(‘search1’); //Frame 8
}

Frame 8
pauseFor(4000)

Frame 9

{
loadVariablesNum(“newlogin1.php”, 0, “POST”);
}