bbarton Posted January 12, 2008 Share Posted January 12, 2008 I am somewhat new to flash and I was wondering if anyone can help me with actionscript. I have created a login and call on php to access mysql database to check user and pass. My question...i want flash to be directed to a certain page according to the user login. Basically a web portal for different users. Can anyone help me with the actionscript. This is what i have come up with but not sure if correct....submit button actionscript on (release, keyPress "<Enter>") { if (user != "" && pass != "") { status = "Begin Login Process - Wait..."; form.loadVariables("xxxxx.php","POST"); }} First frame actionscript stop();userinput.restrict="a-zA-Z0-9";Selection.setFocus(userinput);passinput.restrict="a-zA-Z0-9";status="Enter your information and submit";this.onEnterFrame = function () { if(this.form."userlogin1"){ _root.gotoAndStop(2); } if(this.form."userlogin2"){ _root.gotoAndStop(3); } if(this.form."failed"){ _root.gotoAndStop(4); } Link to comment Share on other sites More sharing options...
justsomeguy Posted January 14, 2008 Share Posted January 14, 2008 Don't put those property names in quotes, it should just be this.form.userlogin1. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.