Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stop();
- var envio:LoadVars = new LoadVars();
- var recibir:LoadVars = new LoadVars();
- function login() {
- _global.username_txt = username_txt.text;
- envio.username = username_txt.text;
- envio.password = password_txt.text;
- envio.action = "login";
- envio.sendAndLoad("consulta.php", recibir, "POST");
- }
- recibir.onLoad = function(exito) {
- if (exito) {
- switch (this.opcion) {
- case "0" :
- mensaje_txt.text = "no existe el usuario";
- break;
- case "1" :
- mensaje_txt.text = "nombre de usuario o pass mal ingresado";
- break;
- case "2" :
- mensaje_txt.text = "datos correctos";
- gotoAndPlay(23);
- break;
- default :
- mensaje_txt.text = "no hay conexión";
- break;
- }
- } else {
- mensaje_txt.text = "Error en el Script";
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement