Re: [ASNativos] Fwd: Como enviar un simple formulario.

2007-05-30 Por tema visura-t
Mil gracias Fernando, intentaré adaptarlo...



El día 30/05/07, fernando b <[EMAIL PROTECTED]> escribió:
>
> no llames a la pag. con getURL, usa loadVars, te paso un pequeño ejemplo
> de
> su funcionamiento:
>
>
> // montamos un obj. para controlar el envio y recepcion de datos
> var result_lv:LoadVars = new LoadVars();
> result_lv.onLoad = function(success:Boolean) {
>if (success) {
>// estatus lo devuelve la pag. a la q llames, para control
>// de errores y demas.(esto lo configuras tu como quieras)
>if ( this.estatus == 0 ){
>trace ( "todo ha ido bien" );
>// acciones
>}else{
>trace( "error enviando el formulario: " + this.estatus );
>}
>} else {
>trace( "error conectando con el servidor" );
>}
> };
> // montamos las var q hay q pasar al servidor
> var send_lv:LoadVars = new LoadVars();
> send_lv.unaVariable = "valor_1";
> send_lv.otraVariable = "valor_2";
> // rutaPaginaServidor
> var paginaServidor:String = "reg_usuario.php";
> send_lv.sendAndLoad(paginaServidor, result_lv, "POST");
>
>
> con esto puedas llamar a una pag. pasarle los valores q necesitas y
> esperar
> a q te devuelva
> el resultado para serguir con la ejecucion del programa, pruebalo en una
> peli en blanco
> para ver como funciona
>
>
> El día 30/05/07, visura-t <[EMAIL PROTECTED]> escribió:
> >
> > Gracias Fernando, a ver si lo consigo...
> >
> > Es que este es mi código y no me gustaría modificarlo demasiado, por que
> > no
> > controlo casi nada, y esto lo he conseguido a base de muchos ejemplos
> por
> > ahí ya hechos.
> >
> > Siento la parrafada de código pero como no sé exactamente que mostrar
> pues
> > lo pongo todo.
> > Bueno, pues eso, que no quiero que me abra ninguna ventanita html en
> > blanco
> > al darle a enviar.
> > A ver si encuentro algo sin modificar mi código, que yo no controlo. Ya
> he
> > visto ejemplos pero tengo que modificar mucho.
> > Gracias.
> >
> >
> > stop();
> > var alerta_mc;
> > var tapa_mc;
> > var validador = new Object();
> > //
> > //CONTROL FORMULARIO
> > empresa_txt.onKillFocus = function(){
> > if(this.text == "") this.text = " empresa";
> > empresa_txt.background = true;
> > empresa_txt.backgroundColor = 0xCC;
> > empresa_txt.border = false;
> > empresa_txt.textColor = 0xFF;
> > }
> > empresa_txt.onSetFocus = function(){
> > if(this.text.indexof(" empresa") == 0)
> >   this.text = "";
> > empresa_txt.backgroundColor = 0xFF;
> > empresa_txt.textColor = 0x00;
> > }
> > empresa_txt.onKillFocus();
> > //
> > nombre_txt.onKillFocus = function(){
> > if(this.text == "") this.text = " persona de contacto";
> > nombre_txt.background = true;
> > nombre_txt.backgroundColor = 0xCC;
> > nombre_txt.border = false ;
> > nombre_txt.textColor = 0xFF;
> > }
> > nombre_txt.onSetFocus = function(){
> > if(this.text.indexof(" persona de contacto") == 0)
> >   this.text = "";
> > nombre_txt.backgroundColor = 0xFF;
> > nombre_txt.textColor = 0x00;
> > }
> > nombre_txt.onKillFocus();
> > //
> > email_txt.onKillFocus = function(){
> > if(this.text == "") this.text = " e-mail";
> > email_txt.background = true;
> > email_txt.backgroundColor = 0xCC;
> > email_txt.border = false;
> > email_txt.textColor = 0xFF;
> > }
> > email_txt.onSetFocus = function(){
> > if(this.text.indexof(" e-mail") == 0)
> >   this.text = "";
> > email_txt.backgroundColor = 0xFF;
> > email_txt.textColor = 0x00;
> > }
> > email_txt.onKillFocus();
> > //
> > telefono_txt.onKillFocus = function(){
> > if(this.text == "") this.text = " teléfono";
> > telefono_txt.background = true;
> > telefono_txt.backgroundColor = 0xCC;
> > telefono_txt.border = false;
> > telefono_txt.textColor = 0xFF;
> > }
> > telefono_txt.onSetFocus = function(){
> > if(this.text.indexof(" teléfono") == 0)
> >   this.text = "";
> > telefono_txt.restrict = "0-9";
> > telefono_txt.backgroundColor = 0xFF;
> > telefono_txt.textColor = 0x00;
> > }
> > telefono_txt.onKillFocus();
> > //
> > formacion_txt.onKillFocus = function(){
> > if(this.text == "") this.text = " formación profesional";
> > formacion_txt.background = true;
> > formacion_txt.backgroundColor = 0xCC;
> > formacion_txt.border = false;
> > formacion_txt.textColor = 0xFF;
> > }
> > formacion_txt.onSetFocus = function(){
> > if(this.text.indexof(" formación profesional") == 0)
> >   this.text = "";
> > formacion_txt.backgroundColor = 0xFF;
> > formacion_txt.textColor = 0x00;
> > }
> > formacion_txt.onKillFocus();
> > //
> > mensaje_txt.onKillFocus = function(){
> > if(this.text == "") this.text = "

Re: [ASNativos] Fwd: Como enviar un simple formulario.

2007-05-30 Por tema fernando b
no llames a la pag. con getURL, usa loadVars, te paso un pequeño ejemplo de
su funcionamiento:


// montamos un obj. para controlar el envio y recepcion de datos
var result_lv:LoadVars = new LoadVars();
result_lv.onLoad = function(success:Boolean) {
if (success) {
// estatus lo devuelve la pag. a la q llames, para control
// de errores y demas.(esto lo configuras tu como quieras)
if ( this.estatus == 0 ){
trace ( "todo ha ido bien" );
// acciones
}else{
trace( "error enviando el formulario: " + this.estatus );
}
} else {
trace( "error conectando con el servidor" );
}
};
// montamos las var q hay q pasar al servidor
var send_lv:LoadVars = new LoadVars();
send_lv.unaVariable = "valor_1";
send_lv.otraVariable = "valor_2";
// rutaPaginaServidor
var paginaServidor:String = "reg_usuario.php";
send_lv.sendAndLoad(paginaServidor, result_lv, "POST");


con esto puedas llamar a una pag. pasarle los valores q necesitas y esperar
a q te devuelva
el resultado para serguir con la ejecucion del programa, pruebalo en una
peli en blanco
para ver como funciona


El día 30/05/07, visura-t <[EMAIL PROTECTED]> escribió:
>
> Gracias Fernando, a ver si lo consigo...
>
> Es que este es mi código y no me gustaría modificarlo demasiado, por que
> no
> controlo casi nada, y esto lo he conseguido a base de muchos ejemplos por
> ahí ya hechos.
>
> Siento la parrafada de código pero como no sé exactamente que mostrar pues
> lo pongo todo.
> Bueno, pues eso, que no quiero que me abra ninguna ventanita html en
> blanco
> al darle a enviar.
> A ver si encuentro algo sin modificar mi código, que yo no controlo. Ya he
> visto ejemplos pero tengo que modificar mucho.
> Gracias.
>
>
> stop();
> var alerta_mc;
> var tapa_mc;
> var validador = new Object();
> //
> //CONTROL FORMULARIO
> empresa_txt.onKillFocus = function(){
> if(this.text == "") this.text = " empresa";
> empresa_txt.background = true;
> empresa_txt.backgroundColor = 0xCC;
> empresa_txt.border = false;
> empresa_txt.textColor = 0xFF;
> }
> empresa_txt.onSetFocus = function(){
> if(this.text.indexof(" empresa") == 0)
>   this.text = "";
> empresa_txt.backgroundColor = 0xFF;
> empresa_txt.textColor = 0x00;
> }
> empresa_txt.onKillFocus();
> //
> nombre_txt.onKillFocus = function(){
> if(this.text == "") this.text = " persona de contacto";
> nombre_txt.background = true;
> nombre_txt.backgroundColor = 0xCC;
> nombre_txt.border = false ;
> nombre_txt.textColor = 0xFF;
> }
> nombre_txt.onSetFocus = function(){
> if(this.text.indexof(" persona de contacto") == 0)
>   this.text = "";
> nombre_txt.backgroundColor = 0xFF;
> nombre_txt.textColor = 0x00;
> }
> nombre_txt.onKillFocus();
> //
> email_txt.onKillFocus = function(){
> if(this.text == "") this.text = " e-mail";
> email_txt.background = true;
> email_txt.backgroundColor = 0xCC;
> email_txt.border = false;
> email_txt.textColor = 0xFF;
> }
> email_txt.onSetFocus = function(){
> if(this.text.indexof(" e-mail") == 0)
>   this.text = "";
> email_txt.backgroundColor = 0xFF;
> email_txt.textColor = 0x00;
> }
> email_txt.onKillFocus();
> //
> telefono_txt.onKillFocus = function(){
> if(this.text == "") this.text = " teléfono";
> telefono_txt.background = true;
> telefono_txt.backgroundColor = 0xCC;
> telefono_txt.border = false;
> telefono_txt.textColor = 0xFF;
> }
> telefono_txt.onSetFocus = function(){
> if(this.text.indexof(" teléfono") == 0)
>   this.text = "";
> telefono_txt.restrict = "0-9";
> telefono_txt.backgroundColor = 0xFF;
> telefono_txt.textColor = 0x00;
> }
> telefono_txt.onKillFocus();
> //
> formacion_txt.onKillFocus = function(){
> if(this.text == "") this.text = " formación profesional";
> formacion_txt.background = true;
> formacion_txt.backgroundColor = 0xCC;
> formacion_txt.border = false;
> formacion_txt.textColor = 0xFF;
> }
> formacion_txt.onSetFocus = function(){
> if(this.text.indexof(" formación profesional") == 0)
>   this.text = "";
> formacion_txt.backgroundColor = 0xFF;
> formacion_txt.textColor = 0x00;
> }
> formacion_txt.onKillFocus();
> //
> mensaje_txt.onKillFocus = function(){
> if(this.text == "") this.text = " mensaje";
> mensaje_txt.background = true;
> mensaje_txt.backgroundColor = 0xCC;
> mensaje_txt.border = false;
> mensaje_txt.textColor = 0xFF;
> }
> mensaje_txt.onSetFocus = function(){
> if(this.text.indexof(" mensaje") == 0)
>   this.text = "";
> mensaje_txt.backgroundColor = 0xFF;
> mensaje_txt.textColor = 0x00;
> }
> mensaje_txt.onKillFocus();
> //---

Re: [ASNativos] Fwd: Como enviar un simple formulario.

2007-05-30 Por tema visura-t
Gracias Fernando, a ver si lo consigo...

Es que este es mi código y no me gustaría modificarlo demasiado, por que no
controlo casi nada, y esto lo he conseguido a base de muchos ejemplos por
ahí ya hechos.

Siento la parrafada de código pero como no sé exactamente que mostrar pues
lo pongo todo.
Bueno, pues eso, que no quiero que me abra ninguna ventanita html en blanco
al darle a enviar.
A ver si encuentro algo sin modificar mi código, que yo no controlo. Ya he
visto ejemplos pero tengo que modificar mucho.
Gracias.


stop();
var alerta_mc;
var tapa_mc;
var validador = new Object();
//
//CONTROL FORMULARIO
empresa_txt.onKillFocus = function(){
 if(this.text == "") this.text = " empresa";
 empresa_txt.background = true;
 empresa_txt.backgroundColor = 0xCC;
 empresa_txt.border = false;
 empresa_txt.textColor = 0xFF;
}
empresa_txt.onSetFocus = function(){
 if(this.text.indexof(" empresa") == 0)
  this.text = "";
 empresa_txt.backgroundColor = 0xFF;
 empresa_txt.textColor = 0x00;
}
empresa_txt.onKillFocus();
//
nombre_txt.onKillFocus = function(){
 if(this.text == "") this.text = " persona de contacto";
 nombre_txt.background = true;
 nombre_txt.backgroundColor = 0xCC;
 nombre_txt.border = false ;
 nombre_txt.textColor = 0xFF;
}
nombre_txt.onSetFocus = function(){
 if(this.text.indexof(" persona de contacto") == 0)
  this.text = "";
 nombre_txt.backgroundColor = 0xFF;
 nombre_txt.textColor = 0x00;
}
nombre_txt.onKillFocus();
//
email_txt.onKillFocus = function(){
 if(this.text == "") this.text = " e-mail";
 email_txt.background = true;
 email_txt.backgroundColor = 0xCC;
 email_txt.border = false;
 email_txt.textColor = 0xFF;
}
email_txt.onSetFocus = function(){
 if(this.text.indexof(" e-mail") == 0)
  this.text = "";
 email_txt.backgroundColor = 0xFF;
 email_txt.textColor = 0x00;
}
email_txt.onKillFocus();
//
telefono_txt.onKillFocus = function(){
 if(this.text == "") this.text = " teléfono";
 telefono_txt.background = true;
 telefono_txt.backgroundColor = 0xCC;
 telefono_txt.border = false;
 telefono_txt.textColor = 0xFF;
}
telefono_txt.onSetFocus = function(){
 if(this.text.indexof(" teléfono") == 0)
  this.text = "";
 telefono_txt.restrict = "0-9";
 telefono_txt.backgroundColor = 0xFF;
 telefono_txt.textColor = 0x00;
}
telefono_txt.onKillFocus();
//
formacion_txt.onKillFocus = function(){
 if(this.text == "") this.text = " formación profesional";
 formacion_txt.background = true;
 formacion_txt.backgroundColor = 0xCC;
 formacion_txt.border = false;
 formacion_txt.textColor = 0xFF;
}
formacion_txt.onSetFocus = function(){
 if(this.text.indexof(" formación profesional") == 0)
  this.text = "";
 formacion_txt.backgroundColor = 0xFF;
 formacion_txt.textColor = 0x00;
}
formacion_txt.onKillFocus();
//
mensaje_txt.onKillFocus = function(){
 if(this.text == "") this.text = " mensaje";
 mensaje_txt.background = true;
 mensaje_txt.backgroundColor = 0xCC;
 mensaje_txt.border = false;
 mensaje_txt.textColor = 0xFF;
}
mensaje_txt.onSetFocus = function(){
 if(this.text.indexof(" mensaje") == 0)
  this.text = "";
 mensaje_txt.backgroundColor = 0xFF;
 mensaje_txt.textColor = 0x00;
}
mensaje_txt.onKillFocus();
//
direccion_txt.onKillFocus = function(){
 if(this.text == "") this.text = " dirección";
 direccion_txt.background = true;
 direccion_txt.backgroundColor = 0xCC;
 direccion_txt.border = false;
 direccion_txt.textColor = 0xFF;
}
direccion_txt.onSetFocus = function(){
 if(this.text.indexof(" dirección") == 0)
  this.text = "";
 direccion_txt.backgroundColor = 0xFF;
 direccion_txt.textColor = 0x00;
}
direccion_txt.onKillFocus();
//
poblacion_txt.onKillFocus = function(){
 if(this.text == "") this.text = " población";
 poblacion_txt.background = true;
 poblacion_txt.backgroundColor = 0xCC;
 poblacion_txt.border = false;
 poblacion_txt.textColor = 0xFF;
}
poblacion_txt.onSetFocus = function(){
 if(this.text.indexof(" población") == 0)
  this.text = "";
 poblacion_txt.backgroundColor = 0xFF;
 poblacion_txt.textColor = 0x00;
}
poblacion_txt.onKillFocus();
//
provincia_txt.onKillFocus = function(){
 if(this.text == "") this.text = " provincia";
 provincia_txt.restrict = "a-z";
 provincia_txt.background = true;
 provincia_txt.backgroundColor = 0xCC;
 provincia_txt.border = false;
 provincia_txt.textColor = 0xFF;
}
provincia_txt.onSetFocus = function(){
 if(this.text.indexof(" provincia") == 0)
  

Re: [ASNativos] problema FlashPaper en MDM Zinc

2007-05-30 Por tema Raúl Fernández [TANGENT]
Ummm, bueno la cuestión no es que quiera utilizar una imagen propia como
puntero. Lo que quiero es que no desaparezcan los punteros propios del
flashpaper (mano, selección de texto) cuando oculto  la flecha con la orden
de MDMZinc. 
En realidad parece un bug del Zinc, no debería mostrar la flecha sobre los
punteros del flashpaper, en la versión sin Zinc no se muestra.

> -Mensaje original-
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En
> nombre de Chema Roldan
> Enviado el: martes, 29 de mayo de 2007 18:34
> Para: Lista dedicada a Actionscript
> Asunto: Re: [ASNativos] problema FlashPaper en MDM Zinc
> 
> Prueba con esto:
> 
> imagenPuntero --> es el nombre de la instancia del clip que quieres
> usar como raton
> 
> onMouseMove = function () {
>   //asigno la posicion x del puntero a mi movieClip
> imagenPuntero._x = _xmouse;
>   //asigno la posicin y del puntero a mi movieClip
>   imagenPuntero._y = _ymouse;
> };
> 
> 
> El 28/05/07, Raúl Fernández [TANGENT] <[EMAIL PROTECTED]> escribió:
> > Hola, tengo un proyecto de flash que incluye varios flashpapers y he
> creado
> > un ejecutable personalizado con MDM Zinc. El problema con que me
> encuentro
> > es que al situarme con el ratón sobre el archivo de flashpaper aparece
> la
> > mano para desplazarte por el documento, pero el cursor no desaparece,
> por
> > tanto veo la mano y sobre la mano la flecha.
> > He estado haciendo algunas pruebas y al parecer la sentencia
> Mouse.hide();
> > dentro del ejecutable creado con Zinc no obedece. En cambio si que
> obedece a
> > la orden propia mdm.Input.Mouse.hide()
> > Ahora bien, si le digo que oculte el ratón con la orden del Zinc al
> situarse
> > sobre un flashpaper me lo oculta, pero la mano para desplazarte sobre el
> > paper tampoco aparece, con lo cual me quedo sin mano y sin flecha.
> Teneis
> > idea de cómo puedo solucionar este problema? A alguien más le ha
> ocurrido?
> >
> > Un saludo,
> > Raúl Fernández
> >
> >
> >
> > -
> > ASNativos
> > www.5dms.com
> > subscripciones/desubscripciones
> > http://asnativos.5dms.com
> > -
> >
> 
> -
> ASNativos
> www.5dms.com
> subscripciones/desubscripciones
> http://asnativos.5dms.com
> -


-
ASNativos
www.5dms.com
subscripciones/desubscripciones
http://asnativos.5dms.com
-