Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/03/2012, 08:31
Avatar de El_derby
El_derby
 
Fecha de Ingreso: noviembre-2001
Ubicación: Lima Limón
Mensajes: 5.729
Antigüedad: 22 años, 4 meses
Puntos: 43
teclas no funcionann en formulario de contactos

tengo un formulario de contactos en la que tengo en el primer fotograma este código

Código:
Stage.scaleMode = "noScale";
// Gestion tabulation
error_btn._visible=0;
sujet_txt.tabIndex = 1;
mail_txt.tabIndex = 2;
nomprenom_txt.tabIndex = 3;
message_txt.tabIndex = 4;

error_btn.zerror_btn.onPress=function(){
	error_btn._visible=0;
	error_btn.info_txt.text ="";
	_parent.effacer_btn._visible=1;
	_parent.envoi_btn._visible=1;	
}
	
function error(txt){
	error_btn._visible=1;
	error_btn.info_txt.text = txt;
	_parent.effacer_btn._visible=1;
	_parent.envoi_btn._visible=1;
}
	
// ON SUPPRIME LES CONTENU DES CHAMP QUAND ON LES SELECTIONNE
sujet_txt.onSetFocus = function() {
	if (sujet_txt.text == "TELÉFONO") {
		sujet_txt.text = "";
	}
};

mail_txt.onSetFocus = function() {
	if (mail_txt.text == "E-MAIL") {
		mail_txt.text = "";
	}
};

nomprenom_txt.onSetFocus = function() {
	if (nomprenom_txt.text == "NOMBRE") {
		nomprenom_txt.text = "";
	}
};

message_txt.onSetFocus = function() {
	if (message_txt.text == "MENSAJE") {
		message_txt.text = "";
	}
};

//SI LES CONETNU SON VIDE ON REMET LES CHAMP A L'ETAT INITAL

sujet_txt.onKillFocus  = function() {
	if (sujet_txt.text == "") {
		sujet_txt.text = "TELÉFONO";
	}
};

mail_txt.onKillFocus  = function() {
	if (mail_txt.text == "") {
		mail_txt.text = "E-MAIL";
	}
};

nomprenom_txt.onKillFocus  = function() {
	if (nomprenom_txt.text == "") {
		nomprenom_txt.text = "NOMBRE";
	}
};

message_txt.onKillFocus = function() {
	if (message_txt.text == "") {
		message_txt.text = "MENSAJE";
	}
};

// On efface le message d'erreur si le champ est modifier. 
sujet_txt.onChanged = mail_txt.onChanged = nomprenom_txt.onChanged = message_txt.onChanged=function () {
	error_btn.info_txt.text = "";
};
// Fonction pour effacer tout les champs
function effacer() {
	sujet_txt.text = "TELÉFONO";
	mail_txt.text = "E-MAIL";
	nomprenom_txt.text = "NOMBRE";
	message_txt.text = "MENSAJE";
}
// On envoi les données
_parent.envoi_btn.onPress = function() {
	pressBtnForm.start();
	var envoi = new LoadVars();
	if ((sujet_txt.text == "TELÉFONO") or (mail_txt.text == "E-MAIL") or (nomprenom_txt.text == "NOMBRE") or (message_txt.text == "MENSAJE")) {
		error("Es obligatorio rellenar todos los campos. Pulsa aquí para seguir con el formulario de contacto. Gracias.");
	} else {
		envoi.sujet = sujet_txt.text;
		envoi.nomprenom = nomprenom_txt.text;
		envoi.mail = mail_txt.text;
		envoi.msg = message_txt.text;
		envoi.sendAndLoad("mail.php", envoi, "POST");
		effacer();
		error("Su mensaje ha sido enviado con éxito. Nos pondremos en contacto con usted lo antes posible. Gracias. Pulsa aquí para mandar otro mensaje.");
		
	}
};

_parent.effacer_btn.onPress=function(){
	pressBtnForm.start();
	effacer()
}


//ALIAS DES BOUTTON
_parent.effacer_btn.btnTxt_mc.alias_txt.text="CLEAR";
_parent.envoi_btn.btnTxt_mc.alias_txt.text="ENVIAR";

//SON SURVOLE

//LANCEMENT DES SONS
_parent.effacer_btn.onRollOver = _parent.envoi_btn.onRollOver =function(){
	rollBtnForm.start();
}
y este codigo en el boton enviar

Código:
onClipEvent (enterFrame) {
	if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
		if (this._currentframe<this._totalframes) {
			this.nextFrame();
		}
	} else {
		if (this._currentframe>1) {
			this.gotoAndStop(1);
		}
	}
}
al probarlo en el proyector si se puede escribir, pero cuando lo subo a mi servidor para probarlo, sencillamente no escribe nada

este es el link donde esta la animacion

http://www.e.l.d.e.r.b.y.w.e.b.c.o.m...a.n.i.m.4.html

sin los puntos, es todo junto
__________________
nadie esta libre de decir estupideces, lo malo es decirlas con énfasis
w w w . e l d e r b y w e b . c o m ===============> mi blog de diseño gráfico