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] > 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".
[quoted text, click to view] >
> 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
>
>
>