# Checklog - gotoAndPlay not working

**URL:** https://forum.kirupa.com/t/checklog-gotoandplay-not-working/170486
**Category:** Uncategorized
**Created:** [November 26, 2005, 5:33pm UTC](https://forum.kirupa.com/t/checklog-gotoandplay-not-working/170486 "2005-11-26T17:33:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![AmyDor](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@AmyDor](https://forum.kirupa.com/u/AmyDor)
#### Post date: [November 26, 2005, 5:33pm UTC](https://forum.kirupa.com/t/checklog-gotoandplay-not-working/170486/1 "2005-11-26T17:33:32Z")

</div>

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”);  
}
