Jump to content

Actionscript for flash to login using php/portals


bbarton

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...