Remnorz
06-02-2006, 10:03 PM
Ok I have 2 basic problems that are probably some kind of error on the code but I can't seem to find them.
1) When I add information to the form, when the e-mail is created it will return the values -1 character. Example:
Name: Michael
Date: 10/9/12
It will show the values in the e-mail as:
Name: Michae
Date: 10/9/1
That's problem number 1... the second problem is:
The information will show if the .fla is open, if I close it and try and run the swf or html file to test it, it will open my e-mail handler but it wont show any information at all. I'm stuck and I need some help pls someone.
The Code:
on (release) {
trace(this.fecha.text);
trace(this.productor.text);
trace(this.codigo.text);
trace(this.nombreasegurado.text);
trace(this.direccionpostal.text);
trace(this.direccionfisica.text);
trace(this.segurosocial.text);
trace(this.telefono.text);
trace(this.propiedad.text);
trace(this.agregado.text);
trace(this.productos.text);
trace(this.injuria.text);
trace(this.ocurrencia.text);
trace(this.nombreadd.text);
trace(this.direccionad.text);
trace(this.direccionfisica2.text);
trace(this.direccionfisica3.text);
trace(this.comentarios.text);
urldata = "";
urldata += "Fecha: "+this.fecha.text+newline+" ";
urldata += "Productor: "+this.productor.text+newline+" ";
urldata += "Codigo: "+this.codigo.text+newline+" ";
urldata += "Nombre: "+this.nombreasegurado.text+newline+" ";
urldata += "Dirección Postal: "+this.direccionpostal.text+newline+" ";
urldata += "Dirección Física: "+this.direccionfisica.text+newline+" ";
urldata += "Seguro Social: "+this.segurosocial.text+newline+" ";
urldata += "Teléfono: "+this.telefono.text+newline+" ";
urldata += "Propiedades: "+this.propiedad.text+newline+" ";
urldata += "Agregado: "+this.agregado.text+newline+" ";
urldata += "Productos: "+this.productos.text+newline+" ";
urldata += "Injuria Personal: "+this.injuria.text+newline+" ";
urldata += "Cada Ocurrencia: "+this.ocurrencia.text+newline+" ";
urldata += "Nombre Asegurado Adicional: "+this.nombread.text+newline+" ";
urldata += "Dirección Adicional: "+this.direccionad.text+newline+" ";
urldata += "Dirección Física: "+this.direccionfisica2.text+newline+" ";
urldata += "Dirección Física: "+this.direccionfisica3.text+newline+" ";
urldata += "Comentarios: "+this.comentarios.text+newline+" ";
trace(urldata);
getURL("mailto:cincodolares@gmail.com?subject=Resp onsabilidad Personal&body="+urldata);
}
1) When I add information to the form, when the e-mail is created it will return the values -1 character. Example:
Name: Michael
Date: 10/9/12
It will show the values in the e-mail as:
Name: Michae
Date: 10/9/1
That's problem number 1... the second problem is:
The information will show if the .fla is open, if I close it and try and run the swf or html file to test it, it will open my e-mail handler but it wont show any information at all. I'm stuck and I need some help pls someone.
The Code:
on (release) {
trace(this.fecha.text);
trace(this.productor.text);
trace(this.codigo.text);
trace(this.nombreasegurado.text);
trace(this.direccionpostal.text);
trace(this.direccionfisica.text);
trace(this.segurosocial.text);
trace(this.telefono.text);
trace(this.propiedad.text);
trace(this.agregado.text);
trace(this.productos.text);
trace(this.injuria.text);
trace(this.ocurrencia.text);
trace(this.nombreadd.text);
trace(this.direccionad.text);
trace(this.direccionfisica2.text);
trace(this.direccionfisica3.text);
trace(this.comentarios.text);
urldata = "";
urldata += "Fecha: "+this.fecha.text+newline+" ";
urldata += "Productor: "+this.productor.text+newline+" ";
urldata += "Codigo: "+this.codigo.text+newline+" ";
urldata += "Nombre: "+this.nombreasegurado.text+newline+" ";
urldata += "Dirección Postal: "+this.direccionpostal.text+newline+" ";
urldata += "Dirección Física: "+this.direccionfisica.text+newline+" ";
urldata += "Seguro Social: "+this.segurosocial.text+newline+" ";
urldata += "Teléfono: "+this.telefono.text+newline+" ";
urldata += "Propiedades: "+this.propiedad.text+newline+" ";
urldata += "Agregado: "+this.agregado.text+newline+" ";
urldata += "Productos: "+this.productos.text+newline+" ";
urldata += "Injuria Personal: "+this.injuria.text+newline+" ";
urldata += "Cada Ocurrencia: "+this.ocurrencia.text+newline+" ";
urldata += "Nombre Asegurado Adicional: "+this.nombread.text+newline+" ";
urldata += "Dirección Adicional: "+this.direccionad.text+newline+" ";
urldata += "Dirección Física: "+this.direccionfisica2.text+newline+" ";
urldata += "Dirección Física: "+this.direccionfisica3.text+newline+" ";
urldata += "Comentarios: "+this.comentarios.text+newline+" ";
trace(urldata);
getURL("mailto:cincodolares@gmail.com?subject=Resp onsabilidad Personal&body="+urldata);
}