Answered
Form does not work when it´s laying in a movieclip
I have isolated the problem and it´s seems to be concentrated to the path “mcForm.skickat eq "yes" below: (the serverside script is done in Php)
I t seems like the form not works when it´s laying in a movieclip called mcForm with a send button simply called “send”
I must place the form in a movieclip, because the form is doing a nice tweening made by Laco tweening method.
Everything works fine if [bold]I don’t place[/bold] the form in a movieclip.
Here´s a part of the actionscript in the main timeline navigation.swf:
if (mcForm.skickat eq "yes") {
gotoAndStop("labelFinished");
}
Here´s the actionscript on the “send” button in mcForm in navigation.swf:
on (release) {
loadVariables(" http://www.homesit.se/phpmail.php", "", "GET");
_parent.play();//This statement is not the problem.
}
The timeline in navigations.swf does never reach the label “finished”
This works fine if I don’t place the form in a movieclip in timeline navigation.swf:
if (mcForm.skickat eq "yes") { //this path is the problem
gotoAndStop("labelFinished");
}
Here´s serverscript in php:
(I have no problem here)
<?
$headline = "Mail from your Homesite";
$text = "$name has sent you mail from your homesite
He/she wrote this:
$message
";
mail($mymail, $headline, $text,
"From:".$email."\nReply-To:".$email);
echo("send=yes");
?>
What could possible be wrong
I appreciate every answer.
