Controlling Html Check Boxes From Within Flash
I am trying to check check boxes in an html form from flash buttons in a movie on the same page.. I imagine its something like document.form.checkbox.checked=true but cant get the syntax right from within flash
help??? thanks in advance ash
FlashKit > Flash Help > Flash ActionScript
Posted on: 11-08-2006, 06:02 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Check Boxes In Flash 5
Hello,
I am looking for some advice on a project I am doing.
The concept behind the Flash Movie is simply this. I want to compile a list of about 25 article titles on a page, each having a checkbox next to the title. The user needs to be able to check the titles they need printed, scroll to the bottom, hit a print button and then have the articles spit out the printer. Sounds easy enough.
I have a pretty good knowledge of Flash, movie clips, basic action scripts etc., I am just a little rusty form being out of the loop for a couple years. I am thinking ideally the articles would be movie clips, my main problem is coming up with the check boxes??
If anyone has some advice for me to help me get back in the game I would be very grateful. Thanks.
~~David
Check Boxes - Flash MX
Can anyone tell me how to have a checkbox stay checked. I have 5 pages in a script and check boxes on each page, however, when I check the boxes on page one then go to page two, if I was to go back to page one the checks are gone.
I know it is probably something to do with the Change Handler.
Please inform me how to keep them checked.
Thank you,
Jason
Flash Forms & Check Boxes
Hey I have a form that submits information that gets sent to my email address.
I however would like to include check boxes for faster selection on some parts, but when I include them I get this in the email
FUIComponentClass:
[type Function]
FCheckBoxClass:
[type Function]
Where in the text boxes I get the proper content.
I have several check boxes that I would like to have (about 9 in all) but do not know 'how' to impliment them with variable names and such.
Any help would be appretiated.
Flash Form With A Few Check Boxes...
I have flash form with a few input text boxes and a few check boxes. It sends but I receive all "undefined".
I have this code on my submit btn--
on (release) {
if (company eq "" or contact eq "" or address eq "" or city eq "" or state1 eq "" or zip eq"" or phone eq"" or email eq"")
{
stop();
} else
formData = new LoadVars();
formData.company = company.getValue();
formData.contact = contact.getValue();
formData.address= address.getValue();
formData.phone = phone.getValue();
formData.email = email.getValue();
formData.addinfo = addinfo.getValue();
formData.individual = individual.getValue();
formData.group = group.getValue();
formData.medicare = medicare.getValue();
}
if (mailList.getValue() == 1)
{
formData.mailList = 1;
}
else
{
formData.mailList = 0;
}
formData.sendAndLoad("email_request.php", formData, "Post");
_root.gotoAndStop(42);
and I have my php code--
<?
include 'init.php';
mail ("htrain26@yahoo.com", "All Type Accounting Contact Us Form",
"
The following is input from the request info page.
Please respond to $name at $email in 2-3 business days.
-----------------------------Basic Information----------------------
company: $company
contact: $contact
address: $address
phone: $phone
email: $email
addinfo: $addinfo
individual: $individual
group: $group
medicare:$medicare
Please contact $name immediatly via phone.","$name
");
any help would be much appreciated,
thanks,
hutch
Smart Clips Check Boxes Flash 5 Please Help
I have used some predefined smart clips that come with flash5 for checkboxes for a form. This passes the data on to a CGI script.
The checkboxes has the following script on each clip instance:
onClipEvent (load) {
// check style preference
if (_parent.style.toUpperCase() == "AUTO") {
playerVersion = getVersion;
_parent.platform = playerVersion.substr(0, 3);
} else {
_parent.platform = _parent.style.toUpperCase();
}
// create methods for the parent class
_parent.child = this;
_parent.getLabel = function () { return child.label;};
_parent.getState = function () { return child.checked;};
_parent.setLabel = function (label) { child.label = label;};
_parent.setState = function (state) { child.checked = state;if (state) {if (platform == "MAC") {child.gotoandstop(4);} else {child.gotoandstop(2);}} else {if (platform == "MAC") {child.gotoandstop(3);} else {child.gotoandstop(1);}}};
}
onClipEvent (load) {
// set the initial state
stop ();
label = _parent.label;
if (_parent.checked.toLowerCase() == "true") {
_parent.setState(true);
} else {
_parent.setState(false);
}
}
onClipEvent (mouseDown) {
if (hitTest(_root._xmouse, _root._ymouse, false)) {
if (_parent.getState()) {
_parent.setState(false);
} else {
_parent.setState(true);
}
updateAfterEvent();
}
}
How do I get the checked box to send the value such as installation?
The clip parameters shows 4 items:
_name
checked
label
style
I have filled them in as follows:
installation
false (only can select true or false)
Auto
I must be missing the point somewhere as to how I get it to chuck out the fact that having been checked its value is "installation details please"
Here's hoping some bright person can help.
Flash Form With Check And List Boxes
hi there, i am in a bit of a mix because i have a flash form with checkboxes and list boex and i am unsure how to relate them toi the form i am doing. i understand giving a text field a var name and lining that to the php/pl script which will use the same vars but in flashj how do i set a var for a checkbox or list box. i am very confused
any help would be grateful
Contact Form With Check Boxes? FLASH 8
I want to make a form where the user can check boxes...and fill out a mini form....how do i make the check boxes and with PHP how do i keep track of which ones they have checked?
Flash Form With Check And List Boxes
hi there, i am in a bit of a mix because i have a flash form with checkboxes and list boex and i am unsure how to relate them toi the form i am doing. i understand giving a text field a var name and lining that to the php/pl script which will use the same vars but in flashj how do i set a var for a checkbox or list box. i am very confused
any help would be grateful
Flash MX Email Form PHP With Combo And Check Boxes
Hi-
I'm in need of Flash php help. I have 2 things I'm trying to figure out. It has to do with sending email form results in flash.
How can I include radio button results and drop down box results when sending the form results? I want my visitors to be able to type in their name, email, message -in text input boxes and choose between 2 radio buttons, and make selections on (at most) 9 drop down boxes, and I'd like all this info and their radio and drop down boxes selections emailed to me.
I can't figure out how to do this.
2nd question is... I've also got another site I'm working on that is just text input boxes. It works, but when I get the email, everything is on the same line. How can make every input to be on a new line in my email?
Thanks for any help!
-Jason
Check Boxes
How to write the action script so that when the distintive boxes are check, certain things or else nothing happen.
thanks
Check Boxes
How do I make check boxes? For example, I want to have a clip from a record play, then ask two questions:
Do you like this song? With check boxes for Yes or No
Would you buy this song? With check boxes for Yes or No
In a follow up question, after the user has given selected their box, I'd like to have a "submit" button where it e-mails me their response.
Check Boxes
I am trying to create check boxes, radio buttons, etc in a Flash form. Does anyone know how this is done?
Check Boxes
Anyone know about using Check Boxes on a form? I have a CGI script to handle the form, but when the user submits, the name, email and the other text boxes work fine, but none of the check boxes that I have attached variables to (as per tuturial) are recognized.
I know the CGI script I use can handle the variables , cos to check it I tried the same variables on a HTML form , and when submitted they went through OK.
So how do you get Flash to recognize the variables and actually submit them with the other details?
Check Boxes - Again
OK..I have simple form, 2 input-text boxes and 1 check box. The check box is a movie clip with 2 'states'. Click once, go to frame 2, click again back to frame 1. But if you apply a variable to each frame, or to the button release action, these variables are not exported when the user presses Submit. I know it's because they are 1 level down from the main stage within a MC. If I place a button onto the main stage and add a change variable on Release (just to test it!), it does work and the variables appear in the resulting e-mail.
So how do you get the variables within the movie clip to be 'recognized' on the main stage?? (after which they will obviously be exported)
I have trawled no end of websites for tutorials on Check Boxes, and they all basically tell you how to create the MC and thats it!
PLEASE HELP!!
Check Boxes
hi,
I need to insert some space between the checkbox and its label..can someone suggest me a way,
thx,
Ricky.
Check Boxes?
Hey,
I was wondering what coad i'de put in for a button to have it not "goto next frame" unless a checkbox is checked, like one of thoes "I accept" things. Thanks,
later,
rC
Check Boxes / PHP
I am using a form mailer with PHP on a contact page. I would like to have 3 or 4 check boxes that clients can check depending on what services they are interested in. The boxes are named box1, box2, and box3. How do I change my PHP code to send me their choices??
PHP code...
<?php
$name=$_POST['name'];
$message=$_POST['message'];
$subject=$_POST['subject'];
$email=$_POST['email'];
$to = "e-mail@e-mail.com";
$msg = "Name of sender: $name
";
$msg = "E-Mail: $email
";
$msg .= "Subject: $subject
";
$msg .= "$message
";
mail($to, $subject, $msg, "From: My web site
Reply-To: $email
");
?>
Check Boxes
Hi I was wondering if it was possible to create check box dynamically? I have an xml that i will be iterating thru and for each node i would like to create a text box on the main stage. How would i go about this? Thanks for the insight!
Check Boxes
I have a problem. I am tyring to set up a questionaire that has 3 sets radio buttons (question 1, 2 and 3).
When the user checks a button group, then they should move to a specific point in the timeline. For Example, clicking
Question 1, b button
Question 2, a button
Question 3, c button
Would take them to frame 10 on the timeline.
How could I do this.
Thank-you for any help.
-BP
Multiple Check Boxes
Hi,
I am trying to make some kind of form.. As you know, in forms generally, they ask you what are your interests, and they give you thousands of choices (like computer games, soccer, etc etc.)
In flash, you can put up a lot of check boxes with the components, but how can you GROUP them ? Is there nothing like
code:
checkboxgroup.getSelectedItems ;
?? I know there is something similar in a combo box.. But that's not what I need.
Thanks,
Manojo
Form With Check Boxes - PHP
Really sorry to be asking what I thought would be very simple... maybe it is and I'm the simple one.
Please can someone point me in the right direction on how to get the check box component sending a true or false to PHP?
Cheers
Shane
Check Boxes For Forms
how do I incorperate check boxes into my website for interactivity. I am trying to create ahyperlink to a form website but i do not want the button to function unless the agreements box is checked. i can do it in html but how can you do this in flash. any help will be greatly apreciated
Flash > PHP: Input Boxes Sending HTML?
How can I stop input text boxes sending HTML formated data in a POST using
loadVariablesNum(feedbackpath+"?name="+name_txt_va r+"&body="+body_txt_var, 0, "POST");
I just want the two input text boxes to send plain text to be inserted into a database, instead i just get a load of bad HTML tags n stuff
any thoughts?
Cheers dudes!
Radio Buttons Check Boxes Help Plz
Hi everyone!
I'm back at it!
I solved the multiple input field checking script with some help from a lot of people!
and now I am wondering if I can add something else..
Is there any way I can have a check box or a radio button that acts like a variable? So I can also say in my script:
if checkbox1 is clicked,
+1 to the variable score...
??
any info would be cool!
thanks!
- Leland
How To Create Dynamic Check Boxes?
I'm creating a survey form using Flash MX. I have a part which is a group of check boxes that user could choose, and the number of choices may grow dynamically according to a database table. Can this be done? Please advise.
Check Boxes And Ratio Buttons
I'm trying to put a form together in Flash using ASP.
I can get the values from the Input Text Boxes but I don't know how to get the values from Radio Buttons, Check Boxes or Combo Boxes.
I will appreciate any help.
Thanks.
Radio Buttons, Check Boxes
Help. I am trying to put radio buttons and checkboxes in a form that currently only has text boxes. It sends the data to a php form. I can't find any examples of the actionscript needed to make them work.
Check There Is No Duplications In 5 Input Boxes.
I'm have a bit a problem with a flash form;
I have 5 input text boxes and a submit button.
I want to be able to check there is no duplication of text in any of the 5 text boxes when the user clicks submit.
This all needs to be done in Flash 5.
Thanks
Check Boxes In Tree Component Help
Has anyone ever tried incorporating check boxes into a tree component. So for example each "folder" on the tree would have a check box next to it that is useable?? If so can someone direct me to some info on how to go about doing this?????
I would really appreciate any help
Check Boxes In Php Email Forms
I am putting together a flash email response form in my site using flash/php. Thanks to flashkit it is working and I have emails coming in off it. I am now trying to add a checkbox to the flashform. I have used the component one in flash, given it a name (sendinfocheck)and then in my php file I have added the following to my $emailbody code...
Sender Wants More Info: $sendinfocheck
"
this mimicks the working input text var name based stuff that is currently working in the form/code.
Is there another bit of code I need to put in?
I haven't been able to give the checkbox component a variable name because flash doesn't offer the option...
Thanks a lot for any help
Mark
How To Use Radio Buttons And Check Boxes.
hi,
i need to make a form that send to an email address data posted in the form. i need to use some radio buttons and check boxes but i dont know how...
is there someone that can help me please ?
i will attach the files(fla and php file to see exactly what i try to do)
Thank you !
29 Radio Buttons And 2 Check Boxes
Hi, using AS1 my goal is to pass via URL to cusine_type.asp the value pairs. I have 29 radio buttons in the main stage and are numerated by component name. Two checkBoxes are called 'D_IN' & 'D_OUT'. I'm Trying to send the users radio selection from the group, plus a value if checkbox is ticked, either or both., like so:
Code:
getURL("/option1/cusine_type.asp?formVar="+k+"&IN="+w1+"&OUT="+w2, "_self");
Any ideas as to the coding problem? the issues is getting the radio button value - k. it seems like this loop is not working:
Code:
for (k=1;k<29;k++) {
formdata.k=k.getState( );
}
can you not iterate thru a loop with .getState property ?
The whole code:
Code:
on (release) {
var k=0;w1=0;w2=0;
formdata= new LoadVars( );
for (k=1;k<29;k++) {
formdata.k=k.getState( );
}
formdata.D_IN=D_IN.getValue( );
formdata.D_OUT=D_OUT.getValue( );
if (D_IN.getValue() == true) {
w1=1;
}
if (D_OUT.getValue() == true) {
w2=1;
}
getURL("/option1/cusine_type.asp?formVar="+k+"&IN="+w1+"&OUT="+w2, "_self");
}
Using Radio Buttons Or Check Boxes
Hello All- I am new to the forum and have been programming in C+ at an intermediate level.
Using MX and flash CS3
Question?
I am trying to set up a program that
1. Gives a user a selection of multiple radio buttons
2. Depending on which buttons they select the movie/function will call/get a certain movie.
3. Display the result..
Example in Pseudo Code:
if radio buttons 1,4,8 selected then play or load this.swf or event
I dont need actual code JUST ACTIONSCRIPT THEORY....unless someone wants to give me code too, then I would be willing to give some original music from my music archive(had a couple of hits in USA in '98 so the music is quality Professional)....that goes for anyone...if you need a specific clip for your site,program, etc...I just ask for credit
Set Style For Disabled Check Boxes
I'm trying to set the style for a check box, works fine when the check box is enabled, but once disabled the check box reverts back to its default disabled style.
How do I change the style for disabled check boxes?
Here is the code I used for defining the style and setting it to the checkbox:
Code:
var msg_frmt:TextFormat = new TextFormat("Verdana",10,0xFFFFFF,null,null,null,null,null,"left",null,null,null,null);
var chkbox:CheckBox = new CheckBox();
chkbox.setStyle("textFormat",msg_frmt);
PHP Form Check Boxes Problem...
Hi!
I've used this tutorial: http://www.cfzone.net/showDetail.asp...orm2/index.htm
Direct link to the check boxes page of the tutorial:
http://www.cfzone.net/showDetail.asp...orm2/page9.htm
Everything works fine and I get the information in my email
except from the checkboxes, they're blank...i've checked spelling and so on and I can't find anything really...
i'm stuck....
On the first frame inside my check box mc i have this:
ActionScript Code:
/:boende = "";
and on the check box buttons I have this:
1st checkbox:
ActionScript Code:
on (release) {
/:boende = "Ja";
gotoAndStop(2);
}
2nd checkbox
ActionScript Code:
on (release) {
/:boende = "Nej";
gotoAndStop(3);
}
the PHP
PHP Code:
<?
$to = "myEmail@email.com";
$email = htmlspecialchars($_POST['email']);
$msg = "Name of sender: ".htmlspecialchars($_POST['name'])."
";
$msg .= "subject: ".htmlspecialchars($_POST['subject'])."
";
$msg .= "message: ".htmlspecialchars($_POST['message'])."
";
$msg .= "e-mail: $email
";
$msg .= "phone: ".htmlspecialchars($_POST['phone'])."
";
$msg .= "boende: ".htmlspecialchars($_POST['boende'])."
";
mail($to, $subject, $msg, "From: Snökite
Reply-To: $email
");
?>
that's pretty much it...would be very greatfull if you could enlighten me a bit!
HELP Radio Buttons And Check Boxes
I am doing an interactive survey that is due next week. I need to use radio button and check boxes to capture YES or NO values to a variable. How do I do this?
Sending E-mail With Check-boxes.
Hello,
I know it's been a few threads about this already, but I haven't really got an answer. I have followed the tutorial Flash-Based Email Form Using PHP here at Kirupa, but now I want to add checkboxes to it. How do you do that? Can anyone help me? What kind of AS code and PHP code can I use to get the components to work?
This is the code for the submit-button:
Quote:
on (release) {
// send variables in form movieclip (the textfields)
// to email PHP page which will send the mail
form.loadVariables("email.php", "POST");
}
The code attached to the form:
Quote:
onClipEvent(data){
// show welcome screen
_root.nextFrame();
}
And finally, the php code:
Quote:
<?php
$sendTo = "mail@example.com";
$subject = "My Flash site reply";
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-path: " . $_POST["email"];
$message = $_POST["message"];
mail($sendTo, $subject, $message, $headers);
?>
I truly appreciate all the help I can get!
Using Check Boxes To Produce A Result
Hi,
Lets say we have 6 check boxes.
ex: 24vac, 24vac/dc, tristate, on/off, modulating, auxswitches.
If someone checks 24vac, on/off, and auxswitches (3 boxes) then a part number of dc24-44 would populate. Depending on which boxes are checked a different part number would populate.
What is the best method to do this. We would rather not call data from an ASP page.
Thats about it
Thanks again!!!!!!
Tom
Make The Link To Check Boxes
any guys can help me...........?
is there any facility to make a link toa flash component? especially i want to make a link to a check box. this check box shoul be able to do both. if a user clicks on that check boxes label it should go & play another frame also able to tick the check box......
please help me
Fowzan
Generating A Variable List From Check Boxes
I'm working with Flash 5 to submit a feedback form. All the variable text fields Name, Company, E-mail etc. work fine and are posted to the E-mail address specified in the actionscript.
However, the form includes six check boxes whereby the user can request additional information, without the need to type in the Comments field.
I've tried several methods to create a Variable list "Details" when the user checks or unchecks a box.
The actionscript looks something like this:
on (press) {
if (Number(but) == 0) {
tellTarget ("radioButton1") {
nextFrame ();
}
but = 1;
Details = Details + "Steel Fabrication" + ", ";
} else {
tellTarget ("radioButton1") {
prevFrame ();
}
but = 0;
Details = Details - "Steel Fabrication" - ", ";
}
}
The above, as I am sure many of you will have spotted, does indeed add the variable "Steel Fabrication" to "Details" when a user checks the box but, much to my frustration, it returns NaN (which I understand) when the user unckecks the box.
Is it possible to compile a variable list "Details" from a series of check boxes so the result posted looks something like:
Details: Steel Fabrication, Steelcraft Erection, Design and Build, and so one.
I'd be very grateful if anyone can assist me - Drinks all round and all that!
Getting Variable From Component Radio And Check Boxes
Topic says it all really I am creating a form (using components) and want to pass the variables out but I can't see how the radio buttons work, there is no where to set the variable name and the same with check boxes.
Sorry I am quite new to all this!
Contact Form With Combox's And Check Boxes
Hi does anyone know of any tutorials to create a contact form that
includes use of a combobox, i've found loads that are just straight
input boxes and have got one working, but i've found nothing that
includes being able to set variables for a combobox.
I'm very very new at action script so that's why im looking for a
working example/tutorial so I can pick it apart and see how it works.
I've tried places like actioscript.org and flashkit but as I said above
the only contact form examples they have are just straight input text
boxes.
If anyone can point me in the right direction I would be most gratefull.
Downloading A Batch Of Files Using Check Boxes?
Is it possible to check radio button boxes in flash and then download a batch of selected images? Or is this better done in HTML using SQL/PHP/ASP?
If so have you seen it done anywhere using flash?
Attach Check Boxes In Component Table
I am trying to modify this table component that I have downloaded..
I want to add another column for the checkboxes where it will be in each row....
Can anyone help me what should i modify/add into the script for the checkboxes??
I have attach a zip file on the table example...
Radio Groups / Check Boxes + Coldfusion :(
Heya guys
Thanks for Looking!
Basicly my problem is Flash Radio Groups + Coldfusion.... I know how to send it if it was just 1 radio button...
For Example:
Flash Side:
1) ::Created Radio Button::
2) Gave it the instance name of "question1"
3) added a button that takes you to frame blah
4) in frame blah i use Loadvaribles(....,post)
Coldfusion Side:
1) Created a Query
2) Used Insert Into ::database:: funcion
Example:
<cfquery datasource="YourDSN">
INSERT INTO USUERS(
question1
)
VALUES(
'#question1#',
)
</cfquery>
As per Easy-CFM Tutorial :http://tutorial88.easycfm.com/
...Works fine....
__________________________________________________
Now, if i wanted to use a radio group... would i have to give each member of the group an instance name?? if so that would mean i would have to do some kinda checking weather it was "pressed" or not?..
If, i use check boxes it gets even more of a hassel. because check boxes im assuming that each has to have its own instance name..
Check Box's / Radio Buttions
What i think it should do but i dont know how is.
Radio Button
1) in flash determ which one has been selected
2) send that value over to coldfusion
In other words treat the group as a single varible?... would that work?... :quest:
Check Box's
1) Check which box's are check off ,
2) iether concadinate the checked off box's values, or have 1 slot in the database for each check box.. which to me seems a bit much
3) if concadinateing , assisgn a null value to that instance of the box(thats not check off) , such that when its concadinated its.
Example:
<hello,null,mom,null,i,null,miss,null,you>
I know its alot to look at
and i do thank you for any assistance or tutorals you could refer me to.. iv just been banging my head over the door for the past few days trying to figure this out
If ya want im attaching a link of my .fla so ya can see what im trying to do
ComputerLab-Survey-2004.fla
(if worse comes to worse Combobox's are a mans best friend ) hehe
~Peter
How To Keep Picked The Check Boxes And Radio Buttons
Hi,
I have problems with this: I have to navigate through pages with check boxes and radio buttons, but when I go back or forward the information disappears. I think it could be solved assigning variables to that components, but if that´s so, wich is the script to make it.
There are similar questions to mine in the MX forum, but they are all unanswered.
Thanx in advance for the answer.
DAVID
|