LoadVars still undefined when viewing downloaded movie

Hello

I created a flash animation that has a 'contact us' form, which sends the name, email, phone number and comments to an ASP.NET web page that acts as a relay of e-mail. Is it is able to communicate with the ASP page, and then it displays a 'success' message If it is impossible to contact the server or if the ASP page returns an error, then it displays a message "error".

When I test the movie on my computer (either directly from Flash or a Web page on my hard drive), there is no that it is supposed to do: send contact information to the Web server and then displays a message "success" or "error", but when I download the movie on a server (even on a local server) it is always "not defined". I already tested it on 4 different servers (including the local server) and it is always the same.

Miss me that causes this behavior?

Thanks for any help that you could provide.

1. place last
email.sendAndLoad (" http://www.promocasa.com.mx/tools/formaCorreo.aspx", )
emailResponse, 'GET');
You have a potential synchronization problem where emailResponse.onLoad =
function(Success:Boolean) is not assigned until the response is saved.
something = function is an assignment of the time of execution and should be treated
before that it could be used.

2 have you tried 'POST' instead of 'GET '?

3 is a Flash animation on the same domain as www.promocasa.com.mx. Otherwise you
need a crossdomain.xml file.

4. try a Flash animation very basic which simply sends and receives some static
data on your server.

5 Add traces to the emailResponse.onLoad
trace ("emailResponse.onLoad - success:" + success);

6. be sure that you don't have an older version cached of Flash animation in your
Web browser. A quick way is to temporarily rename and download.

7. not sure on your scope because it works locally, but for a test set
var email: LoadVars = new LoadVars();
var emailResponse:LoadVars = new LoadVars(); on the chronology and commentary
inside of the one (click)

--
LON Hosford
www.lonhosford.com
Examples of Flash, Actionscript, and Flash Media Server files:
http://flashexamples.hosfordusa.com
Number of happy bits exempts your way!
"saldillo" wrote in message
News:ed70m3$6ei$1@forums. Macromedia.com...
> Well, Yes, I already did.
>
> I have created a basic HTML page that has a bunch of fields hidden which
> represent
> the data sent by the flash movie. I downloaded on the same server
> where
> I downloaded the SWF file to see if she had nothing to do with the server, but
> Unfortunately,.
> When I press the button submit on the HTML page it displays the message OK
> that is
> sent by the ASP page, and I received the email fine.
>
> I never receive the email when I press the button submit on my downloaded
> SWF
> film, which leads me to believe that the ASP page does not receive the
> information.
>
> I enclose my AS code, I forgot to do it in my original posting.
>
> Thank you for your answers.
>
>
>
> on {(click)
> var email: LoadVars = new LoadVars();
> var emailResponse:LoadVars = new LoadVars();
>
> / / This is the data that the user entered in the contact form.
> email.txtNombre = _parent.txtNombre.text;
> email.txtEmail = _parent.txtEmail.text;
> email.txtTelefono = _parent.txtTelefono.text;
> email.txtComentarios = _parent.txtComentarios.text;
>
> / / My ASP page should work for any SWF movie so I put here for each
> film which
> / / sends data to the server. Once I get this work in the way that he
> should, I'll load the info from a text file to
> / / avoid this hard coding in the film.
> email.txtEmailReceptor = "[email protected]"; Who should
> receive email
> email.txtEmailEmisor = "[email protected]";
> email.txtDesarrollo = "Residencial Barcelona." Which Web page

> origin
> This application
> email.txtAsunto = "BARCELONA: Forma contacto del sitio web Barcelona."
' > Residencial "; Object
> email.txtMensaje = "Se ha petici una received? n information? n del sitio
> web
> Barcelona hotel. « ; //
> email.sendAndLoad (' http://www.promocasa.com.mx/tools/formaCorreo.aspx', )
> emailResponse.
(> 'GET');
>
> emailResponse.onLoad = {function (success:Boolean)}
> var strSuccess:String = '? '. Gracias por you inter? s! One of our
> asesores
> recibi? You petici? n y is pondr? by contacto para atenderte. « ;
> var strError:String = "Lo sentimos. Hubo a t error? about enviar al Técnico
> information? n. Por favor cont? such por ctanos? Fono para poder atenderte.
> Exonerated
> las molestias. « ;
> var strMensaje:String = this.mensaje;
>
> If (success) {}
> _parent.estado_txt.text = strMensaje; Print the message to a
> dynamic text field called 'estado_txt '.
> _parent.nextFrame (); This deletes my entry form and shows the
> estado_txt field.
> }
> /*
> If ('OK' == strMensaje.substr (0.2))
> _parent.estado_txt.text = strSuccess;
> other
> _parent.estado_txt.text = strerror(errno);
>
> _parent.nextFrame ();
> */
> };
> }
>

Tags: Adobe Animate

Similar Questions

Maybe you are looking for