I’m making a site in flash, and part of it is contains restricted information.
I’m just using password field, no username and the password is the same for all.
I used a TextInput field and created a “log inn” button.
The TextInput instance name is pwdtxt, and I added this script to the keyframe:
Selection.setFocus (pwdtxt);
The “Log inn” button has this script:
on (release) {
if (pwdtxt == “aaaaaa”) {
getURL (“http://www.something.com/index.html”, “_blank”);}
else {
gotoAndStop(54);}
}
In frame 54 the user is notified that the password was wrong along with a back button.
Now, the problem is no passord is accepted what so ever (its not aaaaaa!), so it seems that the “log in” botton does not know where to check the condition in the if/else or that the TextInput field is not linked with the button??
I saw someplase that the TextInput field must have a value of var and the name (pwdtxt), but there is no var in the component property.
So, any idea how to make this work? Or similary restrict the access??
Thanks