lux@,
[quoted text, click to view] > I maked a form in the flash and I have a question, I didn't
> get a link between flash and the ASP file.
> I used the code:
> 1 - bt.onRelease = function() {
So far, so good.
[quoted text, click to view] > 2 - var objMail:LoadVars = new LoadVars();
> 3 - objMail.nome = nome.text;
Does this button "see" the nome object? Remember, we're at this point
we're scoped to a function assigned to the onRelease event of the bt object.
I would trace(nome) from here to make sure it's not out of scope.
trace(nome);
trace(nome.text);
[quoted text, click to view] > 4 - objMail.email = email.text;
> 5 - objMail.assunto = assunto.text;
> 6 - objMail.mensagem = mensagem.text;
> 7 - mensagem.text = nome.text=assunto.text=email.text="";
Assuming nome is in scope, we're still okay.
[quoted text, click to view] > 8 - objMail.sendAndLoad("
http://www.teste.com.br/enviar.asp", objMail,
> "POST");
> };
> Is wrong the URL in the line8 of that code?
No. Line 8 looks fine to me.
[quoted text, click to view] > What is the URL correct between the flash and ASP file ?
You did it just right.
[quoted text, click to view] > Why the flash have not access the ASP file??
I'm not convinced that it doesn't. You may very well be connecting to
the ASP file. You may, however, not be sending it any data.
David
stiller (at) quip (dot) net
"Luck is the residue of good design."