Monkey
November 15th, 2001, 07:52 PM
Is there any difference in security or anything between these two password methods
1: stop();
        password = pass
       
        if (password == "monkey")
        gotoAndPlay ("play");
        else
        gotoAndStop ("wrong");
(that is in the second frame of a movie clip)
or
2: if (password == "monkey") {
gotoAndPlay= "play" ;
} else {
gotoAndPlay = "wrong" ;
}
(second frame...main timeline.. not in separate movie clip)
any differences that would alter anything
or any reason to do one over the other I would like to know. thanks===monkey
1: stop();
        password = pass
       
        if (password == "monkey")
        gotoAndPlay ("play");
        else
        gotoAndStop ("wrong");
(that is in the second frame of a movie clip)
or
2: if (password == "monkey") {
gotoAndPlay= "play" ;
} else {
gotoAndPlay = "wrong" ;
}
(second frame...main timeline.. not in separate movie clip)
any differences that would alter anything
or any reason to do one over the other I would like to know. thanks===monkey