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 = 0xCC0000;
> empresa_txt.border = false;
> empresa_txt.textColor = 0xFFFFFF;
> }
> empresa_txt.onSetFocus = function(){
> if(this.text.indexof(" empresa") == 0)
>   this.text = "";
> empresa_txt.backgroundColor = 0xFFFFFF;
> empresa_txt.textColor = 0x000000;
> }
> empresa_txt.onKillFocus();
> //--------------------------------------------------------
> nombre_txt.onKillFocus = function(){
> if(this.text == "") this.text = " persona de contacto";
> nombre_txt.background = true;
> nombre_txt.backgroundColor = 0xCC0000;
> nombre_txt.border = false ;
> nombre_txt.textColor = 0xFFFFFF;
> }
> nombre_txt.onSetFocus = function(){
> if(this.text.indexof(" persona de contacto") == 0)
>   this.text = "";
> nombre_txt.backgroundColor = 0xFFFFFF;
> nombre_txt.textColor = 0x000000;
> }
> nombre_txt.onKillFocus();
> //--------------------------------------------------------
> email_txt.onKillFocus = function(){
> if(this.text == "") this.text = " e-mail";
> email_txt.background = true;
> email_txt.backgroundColor = 0xCC0000;
> email_txt.border = false;
> email_txt.textColor = 0xFFFFFF;
> }
> email_txt.onSetFocus = function(){
> if(this.text.indexof(" e-mail") == 0)
>   this.text = "";
> email_txt.backgroundColor = 0xFFFFFF;
> email_txt.textColor = 0x000000;
> }
> email_txt.onKillFocus();
> //--------------------------------------------------------
> telefono_txt.onKillFocus = function(){
> if(this.text == "") this.text = " teléfono";
> telefono_txt.background = true;
> telefono_txt.backgroundColor = 0xCC0000;
> telefono_txt.border = false;
> telefono_txt.textColor = 0xFFFFFF;
> }
> telefono_txt.onSetFocus = function(){
> if(this.text.indexof(" teléfono") == 0)
>   this.text = "";
> telefono_txt.restrict = "0-9";
> telefono_txt.backgroundColor = 0xFFFFFF;
> telefono_txt.textColor = 0x000000;
> }
> telefono_txt.onKillFocus();
> //--------------------------------------------------------
> formacion_txt.onKillFocus = function(){
> if(this.text == "") this.text = " formación profesional";
> formacion_txt.background = true;
> formacion_txt.backgroundColor = 0xCC0000;
> formacion_txt.border = false;
> formacion_txt.textColor = 0xFFFFFF;
> }
> formacion_txt.onSetFocus = function(){
> if(this.text.indexof(" formación profesional") == 0)
>   this.text = "";
> formacion_txt.backgroundColor = 0xFFFFFF;
> formacion_txt.textColor = 0x000000;
> }
> formacion_txt.onKillFocus();
> //--------------------------------------------------------
> mensaje_txt.onKillFocus = function(){
> if(this.text == "") this.text = " mensaje";
> mensaje_txt.background = true;
> mensaje_txt.backgroundColor = 0xCC0000;
> mensaje_txt.border = false;
> mensaje_txt.textColor = 0xFFFFFF;
> }
> mensaje_txt.onSetFocus = function(){
> if(this.text.indexof(" mensaje") == 0)
>   this.text = "";
> mensaje_txt.backgroundColor = 0xFFFFFF;
> mensaje_txt.textColor = 0x000000;
> }
> mensaje_txt.onKillFocus();
> //--------------------------------------------------------
> direccion_txt.onKillFocus = function(){
> if(this.text == "") this.text = " dirección";
> direccion_txt.background = true;
> direccion_txt.backgroundColor = 0xCC0000;
> direccion_txt.border = false;
> direccion_txt.textColor = 0xFFFFFF;
> }
> direccion_txt.onSetFocus = function(){
> if(this.text.indexof(" dirección") == 0)
>   this.text = "";
> direccion_txt.backgroundColor = 0xFFFFFF;
> direccion_txt.textColor = 0x000000;
> }
> direccion_txt.onKillFocus();
> //--------------------------------------------------------
> poblacion_txt.onKillFocus = function(){
> if(this.text == "") this.text = " población";
> poblacion_txt.background = true;
> poblacion_txt.backgroundColor = 0xCC0000;
> poblacion_txt.border = false;
> poblacion_txt.textColor = 0xFFFFFF;
> }
> poblacion_txt.onSetFocus = function(){
> if(this.text.indexof(" población") == 0)
>   this.text = "";
> poblacion_txt.backgroundColor = 0xFFFFFF;
> poblacion_txt.textColor = 0x000000;
> }
> 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 = 0xCC0000;
> provincia_txt.border = false;
> provincia_txt.textColor = 0xFFFFFF;
> }
> provincia_txt.onSetFocus = function(){
> if(this.text.indexof(" provincia") == 0)
>   this.text = "";
> provincia_txt.backgroundColor = 0xFFFFFF;
> provincia_txt.textColor = 0x000000;
> }
> provincia_txt.onKillFocus();
> //--------------------------------------------------------
> pais_txt.onKillFocus = function(){
> if(this.text == "") this.text = " país";
> pais_txt.background = true;
> pais_txt.backgroundColor = 0xCC0000;
> pais_txt.border = false;
> pais_txt.textColor = 0xFFFFFF;
> }
> pais_txt.onSetFocus = function(){
> if(this.text.indexof(" país") == 0)
>   this.text = "";
> pais_txt.backgroundColor = 0xFFFFFF;
> pais_txt.textColor = 0x000000;
> }
> pais_txt.onKillFocus();
> //--------------------------------------------------------
> //ENVIAR FOMULARIO
> enviar_btn.onRelease = function(){
> System.useCodepage = true;
> if(empresa_txt.text == "" || empresa_txt.text == " empresa") alerta();
> else if(nombre_txt.text == "" || nombre_txt.text == " persona de
> contacto")
> alerta();
> else if(email_txt.text == "" || email_txt.text == " e-mail") alerta();
> else if(telefono_txt.text == "" || telefono_txt.text == " teléfono")
> alerta();
> else if(formacion_txt.text == "" || formacion_txt.text == " formación
> profesional") alerta();
> else if(mensaje_txt.text == "" || mensaje_txt.text == " mensaje")
> alerta();
> else if(direccion_txt.text == "" || direccion_txt.text == " dirección")
> alerta();
> else if(poblacion_txt.text == "" || poblacion_txt.text == " población")
> alerta();
> else if(provincia_txt.text == "" || provincia_txt.text == " provincia")
> alerta();
> else if(pais_txt.text == "" || pais_txt.text == " país") alerta();
> else validador();
> }
> //--------------------------------------------------------
> // RESETEAR FORMULARIO
> borrar_btn.onPress = function(){
> empresa_txt.text = " empresa";
> nombre_txt.text = " persona de contacto";
> email_txt.text = " e-mail";
> telefono_txt.text = " teléfono";
> formacion_txt.text = " formación profesional";
> mensaje_txt.text = " mensaje";
> direccion_txt.text = " dirección";
> poblacion_txt.text = " población";
> provincia_txt.text = " provincia";
> pais_txt.text = " país";
> }
> //--------------------------------------------------------
> //ALERTA
> function alerta(texto){
> alerta_mc = attachMovie("alertaSymbol","alerta",4);
> _root.alerta_mc._x = 385;
> _root.alerta_mc._y = 290;
>
> tapa_mc = attachMovie("tapaclipSymbol","tapa",3);
> _root.tapa_mc._x = 385;
> _root.tapa_mc._y = 308;
> _root.tapa_mc.tapa_btn.useHandCursor = false;
>
> if(!texto){
>   alerta_mc.respuesta_txt.text = "Tiene que rellenar todos los campos";
> }else if(texto == 2){
>   alerta_mc.respuesta_txt.text = "El e-mail está mal escrito";
> }else{
>   alerta_mc.respuesta_txt.text = "E-mail enviado.\nGracias por su
> visita.";
>   getURL("correo.asp", "_blank", "POST");
>   //getURL("http://cgi.dagarod.net/FormMail.pl";, "_blank", "POST");
>   //loadVariablesNum("correo.asp", "_blank", "POST");
> }
> }
>
> //-----------------------------------------------------------------
> // validador e-mail
> validador = function(){
> if(_root.email_txt.text.esEmail() ){
>   alerta(1)
> }
> else{
>   alerta(2);
> }
> }
> email_txt.addListener(validador);
> //-----------------------------------------------------------------
> meil_pb.onPress = function(){
> getURL("mailto:[EMAIL PROTECTED]","_self <[EMAIL PROTECTED]","_self>
> ");
> }
>
>
>
> El día 29/05/07, fernando b <[EMAIL PROTECTED]> escribió:
> >
> > en cristalab.com seguramente haya ejemplos ya funcionando de ese tipo
> > echale
> > un vistazo y si no busca en google sendandload para envio de datos en
> > flash
> > (me pillas ahora sin mi disco duro, si no te enviaba un ejemplo)
> >
> > El día 29/05/07, visura-t <[EMAIL PROTECTED]> escribió:
> > >
> > > ---------- Forwarded message ----------
> > > From: visura-t <[EMAIL PROTECTED]>
> > > Date: 29-may-2007 21:31
> > > Subject: Como enviar un simple formulario.
> > > To: asnativos@5dms.com
> > >
> > > Hola lista,
> > >
> > > Tengo un problemín muy sencillito para todos vosotros...
> > >
> > > Tengo en el flash un formulario que hay que rellenar.
> > > Y estoy usando getURL que me abre una nueva ventana html en blanco y
> > esto
> > > es
> > > algo molesto.
> > > Pues eso, necesito que al enviarlo no me abra la ventanita html en
> > blanco.
> > > Y si la tiene que abrir que al menos le pueda decir un tamaño a esa
> > > ventana
> > > para meterle algún texto o imagen para disimular que se abre por algún
> > > motivo...
> > >
> > > Bueno, pues eso, que no quiero que me abra ninguna ventanita. Por lo
> > demás
> > > creo de momento que me funciona todo.
> > >
> > > El código que tengo para el boton es este: getURL("correo.asp",
> > "_blank",
> > > "POST");
> > > Aparte tengo mil códigos más pero creo que no son necesarios pegarlos
> > > aquí,
> > > aunque si hace falta lo pego.
> > >
> > >
> > > Gracias.
> > >
> > >
> > >
> > > --
> > > Un saludo,
> > > Laura Sánchez
> > >
> > >
> > > --
> > > Un saludo,
> > > Laura Sánchez
> > > -----------------------------------------------------
> > > ASNativos
> > > www.5dms.com
> > > subscripciones/desubscripciones
> > > http://asnativos.5dms.com
> > > -----------------------------------------------------
> > >
> >
> >
> >
> > --
> > http://www.abezedario.com
> > -----------------------------------------------------
> > ASNativos
> > www.5dms.com
> > subscripciones/desubscripciones
> > http://asnativos.5dms.com
> > -----------------------------------------------------
> >
>
>
>
> --
> Un saludo,
> Laura Sánchez
> -----------------------------------------------------
> ASNativos
> www.5dms.com
> subscripciones/desubscripciones
> http://asnativos.5dms.com
> -----------------------------------------------------
>



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

Responder a