English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

If want to make "User Name" and "Password field...

they are fixed.. only 1 user..


its like this i have made there is some problem.. this the script i added to Sign in bttn.
on (release) {
if (user="prasoon")(password=45712p) {
gotoAndplay (4);
} else {
gotoAndplay (3);
}

2006-12-25 22:11:34 · 1 answers · asked by prasooncomputer 2 in Computers & Internet Programming & Design

1 answers

On the second line, change to

if (user=="prasoon" && password=="45712p") {

or else there'll be a syntax error.

Other points to take note:
1. && means AND
2. Quotes must be used because the password is a mixture of letters and numbers.
3. In this situation, a double equals ( == ) sign must be used, because you're evaluating whether the input is true or false. Use a single equal sign only when assigning values to variables, like

number = 1;

2006-12-25 22:15:55 · answer #1 · answered by papyrus 4 · 2 0

fedest.com, questions and answers