Password protection

I’ve read through almost every single topic on the kirupa forums about password protection. Many seem to leave open enders and many use mysql. I cut bits and peices and formed my own script. In my .fla file I have an input field, a result field and a submit button. I have made a script in which it checks for variables sent by the .swf and then returns a result. The result is then read by flash to see if it is correct. The return and input is all correct and working. However I can’t seem to make it go to a specific frame. I have a If (result == “yes”) go to and play frame 2. This doesn’t work. I can’t get any of my if operators to work. I was wondering if anyone can help me with this problem. Mysql is not an option for me since I don’t have a host that supports it. I have attached my .fla and php script. Thanks in advance.

two things:

  1. replace print “result=yes”; with print “&result=yes”; for yes and no

  2. LoadVariables is asynchronous - i.e. depending on your server you can be waiting for a response. Chances are you’re evaluating the if statement before you receive a reply from the server - I’ve added a basic loop that wait for a response or time out after a predetermined time.