проблем с флаш филмче (логване)

firestarteR1

Registered
не успявам да го задействам, не мога да се усетя ??????


Код:
onFrame (1)
{
stop();
//stops the movie on the login page
userinput.restrict="a-zA-Z0-9";
passinput.restrict="a-zA-Z0-9";
//this will make it so the user can't use symbols
//that could mess with your database

//

Selection.setFocus(userinput);
//this puts the cursor in the first box (thaks Kax!)
status="Enter your information and login";
//this enters in directions in your textbox called status
this.onEnterFrame = function () {
    loadVariables("newlogin.php");
    if(_root.checklog == 1){
        gotoAndStop(2);
    }
    if(_root.checklog == 2){
        gotoAndStop(3);
    }
}
//the onEnterFrame constantly checks to see if the PHP
//script has sent the variable 'checklog' back to the
//movie and directs the people accordingl
}
onFrame (2)

{
    setLabel("log");
stop();
}
моля помогнете :|
 
"checklog" го получавам в флаша че е 1 но не се мести филмчето в фрейм 2 ... изобщо не се задайства иф-а

Код:
 if(empty($_COOKIE['user'])){

$user=$HTTP_POST_VARS['user'];
$pass=$HTTP_POST_VARS['pass'];

//connect to database
if (!$HTTP_POST_VARS['user']| !$HTTP_POST_VARS['pass']){
	print ("status=Error try agen!");
	print ("&checklog=2");
}


if ($user && $pass){
require("db.php");
$pass = md5($pass);
if (!get_magic_quotes_gpc()) {

$user = addslashes($user);

$pass = addslashes($pass);

}

$query = "SELECT * FROM ".PREFIX."users WHERE username = '$user' AND password = '$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){
$hour = time() + 9600;
setcookie(user, $user, $hour);
	print "status= in: ".$user."!";
	print ("&checklog=1");

	} else {
	print ("status=User and password did not match with any user in our database. ");

	print ("&checklog=2");
}
}

}else{
	print "status=You're in: ".$_COOKIE['user']."!";
	print ("&checklog=1");
}

?>
 
if(_root.checklog == 1){
trace("wtf");
gotoAndStop(2);
}

И кажи дали трейсва.

А пробва ли stage.gotoAndStop(2), _root.gotoAndStop(2) oO
 
не рейсва ...

пробвах ...
функцията я изпълнява но
НЕ ЗАДЕСТВА ИФ-а ..

някакви варианти ?
 

Back
Горе