Goto password protected page (label)

anyone tell me is this not how its done?

on (release, keyPress “<Enter>”) {
if (password eq “caleb”) {
tellTarget ("_root") {
gotoAndStop(“private”);
}
} else {
tellTarget ("_root") {
gotoAndStop(“error”);
}
}

it contains syntax error: pls any help appreciated:

You missed a curly bracket at the end of the code:

on (release) {
if (password eq "caleb") {
tellTarget ("_root") {
gotoAndStop("private");
}
} else {
tellTarget ("_root") {
gotoAndStop("error");
}
}
}

yes… thanx… i know thats pretty silly… but i could have beeen there hours.
muchos gratsias : : :slight_smile:

Anytime :slight_smile: