I have a password protected page in a externally loaded swf which works fine kinda. The .php works fine accessing the database, so everything would seem to be fine but if you will look at my link you can see my problem:
http://www.nucklewebdesign.com/arc
click on the products page and enter this in the Login input:
username: admin
pass: sara
which will take you to the protected page. The back button in the lower right corner also works fine but if you don’t click the back button and click the Products button in the main navigation it takes you right to the protected page again instead of the main products page with the username and password inputs. Does anyone have a clue why it is doing this?
AS on the 52nd frame:
stop();
userinput.restrict=“a-zA-Z0-9”;
Selection.setFocus(userinput);
passinput.restrict=“a-zA-Z0-9”;
this.onEnterFrame = function () {
if(_root.checklog == 1){
_root.container.gotoAndStop(54);
}
if(_root.checklog == 2){
_root.container.gotoAndStop(55);
}
}
AS on the submit button:
on (release, keyPress “<Enter>”) {
if (user != “” && pass != “”) {
loadVariablesNum("newlogin.php", 0, "POST");
}
}
AS on the back button:
on(release){
_root.checklog=0;
gotoAndStop(52);
}
AS on the Main Nav (Products Button)
on(release){
_root.container.loadMovie(“products.swf”);
}
(This code is from the ‘Password protect a Flash Page’ right here on Kirupa.)
Thanks
-josh