Rockstar
December 12th, 2004, 06:40 AM
Hi.
I have a problem with php.
Ok so I have a login form, that is working perfectly. I want to insert a flash file [swf] to display an error message. So I made a small dialog box in flash with a dinamic text and gave it a var name: message.
What I wanna do is, depending on what my error message, I want to be able to load the flash template and then display that error message.
I call it a template because I want to use the same template to display other messages.
this is the script that I got for Flash:
c = new LoadVars();
c.onLoad = function(success){
if(success){
box.text = this.msgInside;
} else {
getURL("javascript:alert('something went wrong');");
trace("something went wrong...");
}
}
c.load("login_processor.php");
which is working perfectly. The only problem is to load and display that error message.
Any ideas???
I have a problem with php.
Ok so I have a login form, that is working perfectly. I want to insert a flash file [swf] to display an error message. So I made a small dialog box in flash with a dinamic text and gave it a var name: message.
What I wanna do is, depending on what my error message, I want to be able to load the flash template and then display that error message.
I call it a template because I want to use the same template to display other messages.
this is the script that I got for Flash:
c = new LoadVars();
c.onLoad = function(success){
if(success){
box.text = this.msgInside;
} else {
getURL("javascript:alert('something went wrong');");
trace("something went wrong...");
}
}
c.load("login_processor.php");
which is working perfectly. The only problem is to load and display that error message.
Any ideas???