-
gotoAndStop problem
I have the following code in frame 1 of my swf.
The php code is definately returning all the variables back to the swf correctly (i have checked), but the swf is NOT jumping to frame 2 as it should do ?????
The problem is definately in the AS code where if the variable called "commence" is "yes" then go to frame 2.
P.S
Im using Flash 8.
Thanks in advance.
---------------------ACTIONSCRIPT CODE BELOW----------------------
_root.login_btn.onRelease=function() {
if (passinput.text == "") {
statusnote = "Field Empty";
}
else {
statusnote = "Authenticating - Please Wait......";
loadVariablesNum("sitelogin.php", 0, "POST");
}
}
cancommence = function() {
if (commence == "yes") {
gotoAndStop(2);
}
}
cancommence();
stop();
----------------PHP CODE BELOW------------------------
<?
$pass=$_POST['pass'];
//connect to database
if ($pass){
mysql_pconnect("blah blah.net","blah blah","blah blah") or die ("didn't connect to mysql");
mysql_select_db("blah blah") or die ("no database");
//make query
$query = "SELECT * FROM v2members WHERE sitepassword = '$pass'";
$result = mysql_query( $query ) or die ("didn't query");
//see if there's an EXACT match
$num = mysql_num_rows( $result );
if ($num == 1){
echo "&statusnote=Password Accepted&commence=yes&";
} else {
echo "&statusnote=Authentication Failed !&commence=no&";
die();
}
}
?>
-
i have seen this thread some where before......;-)