check boxes in flash contact form to email

alvarez

New Member
Hey hey,

I have a flash contact form with various fields but I now need to add check boxes and I can't figure out how the AS works. I've scoured the interweb but everything I've tried doesn't work. I've attached text docs containing my PHP and AS if that helps.

Anyone have any ideas?
 

Attachments

  • php and AS txt.zip
    1.5 KB · Views: 36

LouTheDesigner

New Member
for check boxes, here is what I would do.

create movie clips that, at frame 1, contain an unchecked box. then at frame two, they have a checked box.

turn their buttonmode to true like this.

check1.buttonMode = true;

if clicked, call an event that triggers the movieclip to stop at the next frame, and have a variable that toggles on and off, like this:

check1.gotoAndStop(2);
checked_on = true;

then, when someone clicks the submit button, use a few conditional statements based on the buttons' boolean states.

Hope this helps,
Lou
 

alvarez

New Member
Ok thanks Lou I get all that apart from:

"then, when someone clicks the submit button, use a few conditional statements based on the buttons' boolean states."
 

LouTheDesigner

New Member
sure. It would be easier if you told me what the check boxes are meant to do. That way I can post some code.

Something like:

if (checked_on == false)
{
//send this informaiton
}
else
{
//send this other information
}


It just depends on what the check boxes are supposed to do.
 

alvarez

New Member
OK I did try and attach the fla but it was 3kb over the limit. There are three check boxes as follows:

I'm interested in
Buying (box 1) Selling (box 2)

I would like to subscribe to the mailing list (box 3)

I just want the info to go into the email with the input text fields.

Thanks for the help
 
Top