Hi,
I’m creating my first Flash website using AS3, and it’s really basic. I would like to put in a contact form, which I have made. I’ve converted the 3 fields (name_field, email_field and message_field) to a symbol (movie) called ‘form’. I’ve also got a send button, which is called send_btn.
I’ve set up the Action Script so that when the button is clicked, the user is taken to a confirmation-style page. All I want to do is called a php script (I’m comfortable with the code for that) called ‘mailer.php’ and send the three variables from the form to it before then loading the confirmation page.
I know this is simple, and there’s lots out there, but I just can’t get it working, so I’m hoping someone can help.
Here is the code for the frame as it stands at the moment:
function goContactSent (e:MouseEvent):void{
gotoAndPlay(“Contact_Sent”);
}
send_btn.addEventListener(MouseEvent.CLICK, goContactSent);
Thanks,
Ilan