on (press) {
if (_root.pass = “totally bloody //551”) {
_root.gotoAndStop(“freeplay”);
} else {
_parent.messagebox = “invalid pass”;
}
}
i dont get it!!! it should work!!! i cheaked all te vars!! WTF??
on (press) {
if (_root.pass == "totally bloody //551") {
_root.gotoAndStop("freeplay");
} else {
_parent.messagebox = "invalid pass";
}
}
You had the wrong operator if your if statement, the = assigns a value, which wouldn’t make logical sense to do inside of your if statement paraemeters. == compares the two values to see if they are equal (=== compares the values and the datatype).