my flash movie has one layer...and 2 keyframes. keyframe1 has 2 input boxes with instance names of 'uname' and 'pword', and a button with instance name of 'go_btn'
keyframe2 has two dynamic text boxes with instance names of name and score
KEYFRAME 1 - Actions
Code:
stop();
function doLogin() {
status_text.text = "Checking Login..";
MyVar = new LoadVars();
MyVar.uname = _root.uname.text;
MyVar.pword = _root.pword.text;
MyVar.onLoad = function(success) {
if (success) { if(MyVar.answer == "ok"){
status_text.text = "Login Successful";
_root.name.Text = this.name
_root.score.Text = this.score
nextFrame();
}else{
status_text.text = "Login Failed"; } } };
MyVar.sendAndLoad(" MyVar, "POST"); } _root.go_btn.onRelease = doLogin;
im having my asp checked at the moment. this code successfully logs in a user if their details match my database and proceeds to the next frame, however, the details do not load in keyframe 2.
are their any errors in this code that i couldnt see??
keyframe2 has two dynamic text boxes with instance names of name and score
KEYFRAME 1 - Actions
Code:
stop();
function doLogin() {
status_text.text = "Checking Login..";
MyVar = new LoadVars();
MyVar.uname = _root.uname.text;
MyVar.pword = _root.pword.text;
MyVar.onLoad = function(success) {
if (success) { if(MyVar.answer == "ok"){
status_text.text = "Login Successful";
_root.name.Text = this.name
_root.score.Text = this.score
nextFrame();
}else{
status_text.text = "Login Failed"; } } };
MyVar.sendAndLoad(" MyVar, "POST"); } _root.go_btn.onRelease = doLogin;
im having my asp checked at the moment. this code successfully logs in a user if their details match my database and proceeds to the next frame, however, the details do not load in keyframe 2.
are their any errors in this code that i couldnt see??