all groups > flash actionscript > february 2004 >
You're in the

flash actionscript

group:

Input Text Matching Frustration


Re: Input Text Matching Frustration Jorge Braccini
2/3/2004 8:32:16 PM
flash actionscript: test this..

on (release) {
if (9bField.text == "value"){
gotoAndPlay("9bRight");
} else {
gotoAndPlay("9bWrong");
}
}

i dont test it.. but i think it must work.
cyaa
--
Jorge Braccini
www.entersystemscorp.com
Media Interface Developer

"kevindarbro" <webforumsuser@macromedia.com> escribió en el mensaje
news:bvp0jt$n88$1@forums.macromedia.com...
[quoted text, click to view]
send the playback head to a frame labeled "9bRight". The only thing that
happens when a user clicks the submit button is the execution of the "else"
gotoAndPlay, regardless of a correct entry of the word "value".
[quoted text, click to view]

Input Text Matching Frustration kevindarbro
2/3/2004 8:34:05 PM
Hi:

I've got an input field named "9bField" in the property inspector, and a button to submit a user response with the following script on it:

----------------------

on (release) {
if ("9bField._text" == "value"){
gotoAndPlay("9bRight");
} else {
gotoAndPlay("9bWrong");
}
}

-------------------------

What I'm trying to do is have the user input the word "value" and then send the playback head to a frame labeled "9bRight". The only thing that happens when a user clicks the submit button is the execution of the "else" gotoAndPlay, regardless of a correct entry of the word "value".

I tried the same AS without the quotes, as in "if (9bField == "value"){" and so on, and the script checker kept giving me errors.

This should be very straightforward, and I must be doing something very simple incorrectly, but I can't find it, and it's driving me mad!

Any input is very welcome.

Thanks,

- Kevin


AddThis Social Bookmark Button