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

So I have a small application and I want the user to be required to enter a 25 digit serial, so I made 5 input textfields and I named each one with their vars: key1, key2, key3, key4, key5 and put them in that order, then I made a buttun which your will use once you entered your serial. If the serial is right you go to frame 2 if is not you go to frame 3. I preview it but it doesn't work! Here is the script:


on (release, keyPress "") {
if (key1 == "H26BX" & key2 == "294RD" & key3 == "KGFT9" & key4 == "D3B2C" & key5 == "4JKVX") {
gotoAndStop(2);
} else {
gotoAndStop(3);
}
}


What am I doing wrong? This script is added to the "comfirm" button.

2007-02-04 02:33:52 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

If you know another way to do it please do so and send me the swf file.
10 points best answer.

2007-02-04 02:35:39 · update #1

If you know another way to do it please do so and send me the swf file.
10 points best answer.
lordnick13@msn.com

2007-02-04 02:35:58 · update #2

3 answers

You used Bitwise Anding instead of Logic And !
change it, and it will work. i.e. replace each & with && in the code you posted above.


Thanks.

2007-02-04 03:56:49 · answer #1 · answered by Fox 3 · 0 0

I agree that the action picture replace into extremely great, and mutually as the historic previous buffs choose to show out inaccuracies they fail to show plenty that variety into ideal in the story (regardless of the inventive slant). I enjoyed the action, the backgrounds and screenshots have been wonderful, and the soundtrack replace into suitable. i don't be responsive to roughly Vin Diesel as Hannibal, yet i will supply him a huge gamble. i'm hoping they shop on with the story using fact it extremely is surprisingly wonderful in itself, stable situation they did not depict him as black like the affirmative action human beings needed (and how they complained that the Spartans weren't multi-ethnic like usa, do not ask) using fact that he replace right into a "brown" person.

2016-12-13 08:32:56 · answer #2 · answered by Anonymous · 0 0

hmm.... if im not wrong, nothing happens becaused you defined
gotoAndStop(2) in the button,
meaning that it goes to the second frame of the button

Replace "gotoAndStop(2)" with "_root.gotoAndStop(2)" in the button actionscript instead,and you should be able to go to frame 2 of your document.

2007-02-04 03:33:04 · answer #3 · answered by Geinius 3 · 0 0

fedest.com, questions and answers