Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 02-27-2008, 04:26 PM   #1
young grasshopper
Join Date: Jun 2007
Posts: 22
Question checkBox and formMail question

Hello! I am completely new to using components but I was hoping to add a checkBox component to my swf which in turn speaks to a formMail...the problem for me comes when the status of the checkbox is not sent to me as all the other variables of the formMail are (sender, subject, message, etc.)...maybe because I'm unclear where to define the checkBox's variable and how to get that variable sent to the formMail etc....

Can someone tell me how to do this? Please explain in the simplest terms as I am virtually a complete and utter n00b at...both.

PS- the formMail I am using is Matt's

and also if someone can tell me how to embed a font into the label of the checkBox properly, that would also be lovely. Thanks so much!
artbunny is offline   Reply With Quote
Old 02-27-2008, 04:32 PM   #2
Super Moderator
CyanBlue's Avatar
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666

Moving to the Components forum...
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 02-27-2008, 04:37 PM   #3
Super Moderator
ASWC's Avatar
Join Date: Dec 2007
Location: Greenville, SC
Posts: 6,528

You can just check if the checkbox is selected and then set a variable for example:

if(yourCheckBoxName.selected == true){
var theResult = "the check box was selected";

then you send "theResult" to your server side script
Super Duper!
ASWC is offline   Reply With Quote
Old 02-28-2008, 04:15 AM   #4
young grasshopper
Join Date: Jun 2007
Posts: 22
Red face the more you know, the less you know...

sorry I didn't realize components had its own forum! And thanks for the quick reply ASWC!

do I put this AS code on the checkbox itself, or the frame, or the send button on my form..? Do I need to embed the checkbox in a movie clip? Do you know how I might send variables to the formMail? I'm not sure how to make the formMail recognize variables that it wasn't pre-programmed to recognize....

Sorry for all the questions and thanks for your patience!
artbunny is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Another formmail variables question! tintin99 ActionScript 1.0 (and below) 4 07-30-2004 03:59 PM
Send Checkbox info kafir ActionScript 1.0 (and below) 1 04-15-2004 07:04 AM

All times are GMT. The time now is 09:11 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.