Checkbox & Radio Button Values
i have a form spread over several key frames. It's rather long so I needed to break it up. The problem I am having is keeping the value of the checkbox and radio buttons, if the user goes back for forth and makes changes.
Is there a method for keeping the values as is by the user rather than going back to the default value?
If this does not make sense, let me know and I can go into detail.
Thank!
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Checkbox And Radio Button Form
I am looking for some help on how to send a GET form to a different page using checkboxes and radio buttons. I have looked at some tutorials, but they don't have the submit buttons. If you have any examples, suggestions where to look, or you can help I would appreciate the help.
Thanks,
PezHead
Simple Checkbox And Radio Button Help.
I am super stuck.
I have a movie clip that has a form on it placed in Scene 1. When I dragged the Checkbox component onto the stage and test it all I see is a white box with a black outline.
This also happens when I add radio buttons as well. Can you point me in the right direction!
What do I need to do?
Simple Checkbox And Radio Button Help.
I am super stuck.
I have a movie clip that has a form on it placed in Scene 1. When I dragged the Checkbox component onto the stage and test it all I see is a white box with a black outline.
This also happens when I add radio buttons as well. Can you point me in the right direction!
What do I need to do?
[F8] Help Useing Checkbox And Radio Button Component
Im making a form in flash where some one fills in the info and it uses a PHP script to send it to me. What I need help with is how to get info out of a checkbox and radio button components when I try it never works I need to be able to have it output info like the other input boxes. So lets say I have a checkbox with three items you can pick from lets just say they are good ok and bad so if they pick good I need to get what they picked in to a variable.
Also if i had a yes and no radio button i need to so if they pick "yes" I need to get what they picked in to a variable as well.
Thanks
Multiline Checkbox / Radio Button Component
We're now up to Flash version 8 and we still don't have a multiline checkbox / radio button component. Has anyone either:
a. Figured out how to add a multiline text label to the existing Flash components; or
b. Found a third party component that has multiline labels.
I'm a developer for an eLearning company, so we use these components all the time; so having this would be a huge plus. Frankly, it's simply beyond me why Macromedia...er...Adobe hasn't upgraded their components to have this feature. It seems like it wouldn't be a big thing.
Anyway, any help you can provide would be most welcome.
Cheers,
Adam
How To Retain The Radio Button Or Checkbox State?
How to retain the radio button or checkbox state?
I have a test that I made for work. What I would like to do is make my radio button or my checkbox state hold true when I hit the back button.
Right now I have 40 question and answer with checkboxes and radio buttons.
Im using the flash quiz Component Inspector tool. I know its not the best way to go, but this is my first time making a test for work. Once I learn the basic I will move on to better test.
OK back to the problem at hand. As soon as I move forward to the next frame everything works great. But when I move back the radio button or checkbox state is not like I set it before I move on. It is set back to its null value which mean I just lost that data input in that frame. Well like I said I have 40 Q&As so going back and not having that checkbox or radio stay true is not good for the user.
Do I need to selectedData property? If so how do I go about doing this?
And the buttons have this code on them.
on (release) {
gotoAndStop(1);
}
on (release) {
gotoAndStop(2);
}
So on.
For 40 Q&A.
This may not be the best way, but Im welling to learn a better way of doing this.
Once I get this done would you have a Tutorials on how to make a Login for each user?
Do I need to build a Database using phpMyAdmin and php to hold the info?
Sorry guys and girls I need one more thing too.
What is the best way to get the results from the test with the user name , E-mail , time, date or #11111111 Number to ID that user.
Can flash make a text file of the results that way the grader can check the answers?
Thank all for the help.
M
How To Retain The Radio Button Or Checkbox State? Thanx All
How to retain the radio button or checkbox state?
I have a test that I made for work. What I would like to do is make my radio button or my checkbox state hold true when I hit the back button.
Right now I have 40 question and answer with checkboxes and radio buttons.
I’m using the flash quiz Component Inspector tool. I know it’s not the best way to go, but this is my first time making a test for work. Once I learn the basic I will move on to better test.
O yeah Thanx Lee and his crew for the great tutorial.
Right now I’m using one of your tips. “The DRAG SLIDE FADE TIP†In my test.
Works super.
OK back to the problem at hand. As soon as I move forward to the next frame everything works great. But when I move back the radio button or checkbox state is not like I set it before I move on. It is set back to its null value which mean I just lost that data input in that frame. Well like I said I have 40 Q&A’s so going back and not having that checkbox or radio stay true is not good for the user.
Do I need to “selectedData property� If so how do I go about doing this?
And the buttons have this code on them.
on (release) {
gotoAndStop(1);
}
on (release) {
gotoAndStop(2);
}
So on….
For 40 Q&A.
This may not be the best way, but I’m welling to learn a better way of doing this.
Once I get this done would you have a Tutorials on how to make a Login for each user?
Do I need to build a Database using phpMyAdmin and php to hold the info?
Sorry guys and girls I need one more thing too.
What is the best way to get the results from the test with the user name , E-mail , time, date or #11111111 Number to ID that user.
Can flash make a text file of the results that way the grader can check the answers?
Thank all for the help.
M
Urgent UI Checkbox/radio-button Component Q's:
Hi all,
I am baffled... can someone tell me why my radio button and checkbox components are shifting the text downwards?
(no [IMG] tags for the forums?)
checkbox.jpg
radio-buttons.jpg
Also, is it a quick fix to add tabbing functionality to flash forms? Any good tut's out there?
Thanks!
Cheers
Micky
How Do I Remember The Selection In A Radio Button Group And A Checkbox Form?
Hey all,
I am just wondering if there's a way to have the swf remember the selection in radiobuttongroup and also in a checkbox form. Say if I have 3 frames, first two frames I have a radiobutton group and second frame I have a checkbox form. After I selection something in the first and second frame, the movie goes to the third frame. I have two buttons that will take me back to the first and second frame, but the selection will be reset and therefore there's no selection. Is there a way to remember my selections? Thanks.
Radio Button Values (MX)
Hello, one and all.
the values of my radio buttons aren't being sent properly through - instead of me receiving the selected value the value displays [object Object].
How can i get the selected values from my radio buttons?
I have 3 sets of Radio buttons - 2 are simple yes/no options and the other set is based on 3 options.
I've set the groupname for each of these to be the same and have added this:
Q614_Financial_Year_Data.getData();
Q619_First_Year_Exporting.getData();
Q615_Audited_Accounts.getData();
Q623_Use_My_Information.getData()
before my loadVariablesnum, but i have to be missing something, what is it????
hoping you can help (as you lovely people usually do)
Ramirez
Evaluating Radio Button Values
Greetings,
First of all, I would like to thank all the contributors of this board. I dont know where we would stand without your help.
Because I am a VB.net developer, I find the syntax of flash a bit confusing.
I have a series of radio buttoms, all part of the same group name.
I would like a button to act a certain way if a specific radio button is selected. This would involve an "if then" nesting in VB, but not sure how to put this in flash scripting.
For example:
radio buttom 1: (.)ON
radio buttom 2: ( )OFF
by pressing the a buttom next to it, "hello world" would be displayed on a txt box because the on radio button's state is checked.
Thank you for your help.
Radio Button - Assign Values
Hi all,
I have a basic form with two radio buttons.
They each have a label "1" and "2".
I have a dynamic text box - var name "total".
When r button "1" is selected, I would like "x" numerical value to be displayed in "total" and the same for r button "2", but with "y" numerical value displayed.
I am assuming it is fairly simple, but have searched to no avail.
Thanks in advance.
D
[MX04] Passing Radio Button Values To ASP
I'm stuck in trying to figure out how to get a group of radio buttons to pass their state (whether chosen or not) to and ASP page. So far I have the following, which isn't working"
on (release){
formdata.radio=radioGroup.selectedData;
geturl("http://www.pokerzion.com/login/evalsend_copy.asp","","POST");
}
If anyone would be kind enough to explain how to do this, it would be great. I can do this in ASP no problem, but I'm completely new to flash and can'tm figure out the syntax or whether how I really assign data names to the buttons to ensure I'm grabbing the appropirate slescted state from the button.
Thank you!
Passing Radio Button Variables/values
Hello,
I'm new to this game, so please forgive me if I stumble.
I've looked over all of the tutorials, and through all of the forums on this topic. I've found many answers, but they just don't work for me. I'm sure I'm doing something wrong, so I'm asking for assistance.
Here's the deal. I have a multi-frame form. Users can navigate back and forth through the sections of the form at will. It holds the values in each section of the form that the user inputs. This allows the user the option of being able to go back to a previous section of the form to change something if they want.
I have an "All Actions" layer that extends the entire length of all of the frames. The code in the "All Actions" layer is as follows:
ActionScript Code:
// set tab index for form fields
fName.tabIndex = 0;
mInit.tabIndex = 1;
lName.tabIndex = 2;
department.tabIndex = 3;
supFname.tabIndex = 4;
supLname.tabIndex = 5;
supEmail.tabIndex = 6;
// disable tab on certain buttons
homeButton.tabEnabled = false;
ckfreeButton.tabEnabled = false;
contUsButton.tabEnabled = false;
createPlanButton.tabEnabled = false;
// push button callback
function onClick(btn)
{
trace("onClick " + btn._name);
if ( btn == pg1next ) {
// continue button on page 1
getDataFromUIPg1(); // get the data out of ui components on page 1
gotoAndStop("pg2"); // go to pg 2
} else if ( btn == pg2prev ) {
// prev button on page 2
getDataFromUIPg2(); // get the data out of ui components on page 2
gotoAndStop("pg1"); // go to pg 1
} else if ( btn == pg2next ) {
// continue button on page 2
getDataFromUIPg2(); // get the data out of ui components on page 2
gotoAndStop("pg3"); // go to pg 3
} else if ( btn == pg3prev ) {
// prev button on page 3
getDataFromUIPg3(); // get the data out of ui components on page 3
gotoAndStop("pg2"); // go to pg 2
} else if ( btn == pg3next ) {
// continue button on page 3
getDataFromUIPg3(); // get the data out of ui components on page 3
gotoAndStop("pg4"); // go to pg 4
} else if ( btn == pg4prev ) {
// prev button on page 4
getDataFromUIPg4(); // get the data out of ui components on page 4
gotoAndStop("pg3"); // go to pg 3
} else if ( btn == pg4next ) {
// continue button on page 4
getDataFromUIPg4(); // get the data out of ui components on page 4
gotoAndStop("pg5"); // go to pg 5
} else if ( btn == pg5prev ) {
// prev button on page 5
getDataFromUIPg5(); // get the data out of ui components on page 5
gotoAndStop("pg4"); // go to pg 4
} else if ( btn == pg5next ) {
// continue button on page 5
getDataFromUIPg5(); // get the data out of ui components on page 5
gotoAndStop("pg6"); // go to pg 6
} else if ( btn == pg6prev ) {
// prev button on page 6
getDataFromUIPg6(); // get the data out of ui components on page 6
gotoAndStop("pg5"); // go to pg 5
} else if ( btn == pg6next ) {
// continue button on page 6
getDataFromUIPg6(); // get the data out of ui components on page 6
gotoAndStop("pg7"); // go to pg 7
} else if ( btn == pg7prev ) {
// prev button on page 7
getDataFromUIPg7(); // get the data out of ui components on page 7
gotoAndStop("pg6"); // go to pg 6
}
}
// get the data from the ui elements on page 1
function getDataFromUIPg1()
{
loginData.FnameField = fName.text;
loginData.MinitField = mInit.text;
loginData.LnameField = lName.text;
loginData.departmentField = department.text;
loginData.supFnameField = supFname.text;
loginData.supLnameField = supLname.text;
loginData.supEmailField = supEmail.text;
}
// get the data from the ui elements on page 2
function getDataFromUIPg2()
{
loginData.coreLead = compLeadership.getValue();
loginData.coreInit = compInitiative.getValue();
loginData.coreCommit = compCommit.getValue();
loginData.coreCommun = compCommun.getValue();
loginData.coreTeam = compTeam.getValue();
loginData.coreCustServ = compCustServ.getValue();
loginData.coreJobKnow = compJobKnow.getValue();
}
// get the data from the ui elements on page 3
function getDataFromUIPg3()
{
// do nothing
}
// get the data from the ui elements on page 4
function getDataFromUIPg4()
{
loginData.devGoalField = devGoal.text;
}
// get the data from the ui elements on page 5
function getDataFromUIPg5()
{
loginData.devActivityField = devActivity.text;
}
// get the data from the ui elements on page 6
function getDataFromUIPg6()
{
loginData.trainField = training.text;
}
// get the data from the ui elements on page 7
function getDataFromUIPg7()
{
loginData.whatQuarter = quarter.getValue();
}
// set the state of the ui elements on page 1 based
// upon the login data object
function updateUIFromDataPg1()
{
fName.text = loginData.FnameField;
mInit.text = loginData.MinitField;
lName.text = loginData.LnameField;
department.text = loginData.departmentField;
supFName.text = loginData.supFnameField;
supLName.text = loginData.supLnameField;
supEmail.text = loginData.supEmailField;
}
// set the state of the ui elements on page 2 based
// upon the login data object
function updateUIFromDataPg2()
{
compLeadership.setValue(loginData.coreLead);
compInitiative.setValue(loginData.coreInit);
compCommit.setValue(loginData.coreCommit);
compCommun.setValue(loginData.coreCommun);
compTeam.setValue(loginData.coreTeam);
compCustServ.setValue(loginData.coreCustServ);
compJobKnow.setValue(loginData.coreJobKnow);
}
// set the state of the ui elements on page 3 based
// upon the login data object
function updateUIFromDataPg3()
{
// no ui
}
// set the state of the ui elements on page 4 based
// upon the login data object
function updateUIFromDataPg4()
{
devGoal.text = loginData.devGoalField;
}
// set the state of the ui elements on page 5 based
// upon the login data object
function updateUIFromDataPg5()
{
devActivity.text = loginData.devActivityField;
}
// set the state of the ui elements on page 6 based
// upon the login data object
function updateUIFromDataPg6()
{
training.text = loginData.trainField;
}
// set the state of the ui elements on page 7 based
// upon the login data object
function updateUIFromDataPg7()
{
quarter.setValue(loginData.whatQuarter);
}
function initData()
{
// make sure we only call initData once
if ( inited )
return;
inited = true;
// set initial values
loginData = new Object();
loginData.FnameField ="";
loginData.MinitField ="";
loginData.LnameField ="";
loginData.departmentField ="";
loginData.supFnameField ="";
loginData.supLnameField ="";
loginData.supEmailField ="";
loginData.devGoalField ="";
loginData.devActivityField ="";
loginData.trainField ="";
}
I have a button that has the following code:
on (release) {
getURL("http://localhost/testCdt/createDevPlan.asp", 0, "POST");
}
In my .asp file I use a:
<%= Request.Form("fName") %>
for every variable. I use this .asp file to write this info to the database.
Here's the deal. The text fields works just fine. The radio buttons give me an [object Object] entry into the database.
What am I doing wrong? Any help that you can give me will be greatly appreciated.
Thanks in advance.
Getting Values From A Radio Button Into A LoadVars Object
Hi,
I can't see the anwser to this question anywhere else on the forum so I'm hoping someone will be able to help.
I have a survey in Flash with 5 questions. Three questions have input text boxes for the user's answers, and two have sets of radio button options. I want to send the answers to a PHP script and insert them into a MySQL database.
The text boxes work fine, but the values for the radio box responses show up as "undefined" in MySQL. I'd like to know how to pass the values from the two radio button groups into the LoadVars object. The code I have is:
Code:
submit.onRelease = function(){
var questionVar:LoadVars = new LoadVars();
questionVar.question1 = question1.text;
questionVar.question2 = radioGroup1.getvalue();
questionVar.question3 = question3.text;
questionVar.question4 = radioGroup2.getvalue();
questionVar.question5 = question5.text;
questionVar.sendAndLoad("http://www.theresmoretolifethanshoes.com/insert.php", questionVar, "POST");
questionVar.onLoad = function(){
gotoAndPlay(2);
}
}
The radio buttons are set up like this:
Any pointers as to where I'm going wrong would be appreciated.
Capturing Radio Button Values (FLASH MX)
I have a survey form that I ask a series of questions on and then the user submits the file. The name/value pairs are submitting to my cgi script fine. But the problem occurs when I try to capture the values of the radio buttons and check boxes. the name/value pairs for the radio buttons are coming back as blanks. Please help.
Checkbox And Radio Buttons
I am in the process of building a huge form with flash mx where the user will have to fill out over several steps The user will have the ability to go back to a previous step and change their input. The input text fields are okay, but when I go back to a previous frame it defaults back to the "false" state. Is there a method for storing the value in a variable and then calling the variable back when they come back to that previous step?
I have been playing around with storing the state of the checkbox, but not sure if i'm using the right object.
Any help greatly appreciated.
Thanks!
Cannot Get Exact Height Of Radio Or Checkbox
Hello, I am trying to find the correct height of MX 2004 radio buttons in order to align them vertically.
By default (without changing font size) it returns 5 for the "instance_name.height" and 22 for "instance_name._height". Both are not the real height in pixels which should be 12-13 by default.
Is there another code to accurately return the height (in pixels) of the radio button?
Thank you.
- Adrian.
Checkbox Values....HELP
I am using a checkbox component in MX.
I am wondering if:
Change Handler is comparable to the 'VALUE' in html
Instance Name is comparable to the 'NAME' in html
I don't have a label on it because I am using a special font and the component does not allow me to customize it that far.
Thanks so much!
Checkbox Values
Hi,
I'm making my first contact form, neither this process has gone on without a hitch. The only problem is the checkbox. It keeps sending the value false, even if it's been checked. I have attached my fla-file (Flash MX) into this message. I would be very happy if someone helped me with this.
Thanking in advance
Tommi
Checkbox Values
Hi,
I'm making my first contact form, neither this process has gone on without a hitch. The only problem is the checkbox. It keeps sending the value false, even if it's been checked. I have attached my fla-file (Flash MX) into this message. I would be very happy if someone helped me with this.
Thanking in advance
Tommi
Checkbox Values
Hi,
I'm making my first contact form, neither this process has gone on without a hitch. The only problem is the checkbox. It keeps sending the value false, even if it's been checked. I have attached my fla-file (Flash MX) into this message. I would be very happy if someone helped me with this.
Thanking in advance
Tommi
Checkbox Values
Hi,
I'm making my first contact form, neither this process has gone on without a hitch. The only problem is the checkbox. It keeps sending the value false, even if it's been checked. I have attached my fla-file (Flash MX) into this message. I would be very happy if someone helped me with this.
Thanking in advance
Tommi
Checkbox Values
I'm trying to create a value screen (basically where the user must agree to the terms and conditions)
I have printed by t&c's and have a "I Agree" check box at the bottom called chk_dsk.
On the same page i have a "Next" button with the following code:
CODEon (press) {FCheckBox.getValue()
trace(chk_box.getValue());
my_var1 = chk_box.getValue();
if (my_var1 ="false") {nextFrame();
}
if (my_var1 ="true") {prevFrame();
}
}
Adding Checkbox And Radio Buttons To Form
Hello all:
I am working with the attached form mailer (php), and would love to know how to add checkboxes, list boxes and radio buttons and such that will work with this form mailer.
Please review, and I would appreciate any feedback.
Kevin,
Adding Checkbox And Radio Buttons To Form
Hello all:
I am working with the attached form mailer (php), and would love to know how to add checkboxes, list boxes and radio buttons and such that will work with this form mailer.
Please review, and I would appreciate any feedback.
Kevin,
Add A Radio Set, Checkbox And Option Drop To This Form
Hi all,
I have inherited this flash and php form (other developer) and I had to add an extra 9 fields to it (it originally had just three). I was successful in that endeavor, the form works great.
Now the client wants to add radios, checkboxes and a dropmenu to this....(basically color, style and gender) I have been all over the web and nothing seems to fit. There are some flash form generators out there, but they are either pricey or are asp - I'm using php and the form is in a flash based site.
I cut the fields down a bit so you could see whats going on. How can I add these extra form elements? I'm feeling good to just add fields... I'm outta my league here.
Here is the actionscript on frame 1 - the fields in the fla are named emailField, titleField etc etc - all the fields are called (something)Field - pretty straight forward naming conventions.
CODEstop();
border_off_focus = 8025975;
border_on_focus = 8030344;
background_off_focus = 16777215;
background_on_focus = 15658734;
inputfield = [nameField, emailField, phoneField, siteField, commentField];
for (var i in inputfield) {
inputfield[i]._width = 200;
inputfield[i].border = true;
inputfield[i].background = true;
inputfield[i].borderColor = 13421772;
inputfield[i].backgroundColor = 16777215;
inputfield[i].setNewTextFormat(myTextFormat);
}
sender = new LoadVars();
receiver = new LoadVars();
submit_btn.onRelease = function() {
if (nameField.text === "" || (emailField.text === "" || commentField.text === "")) {
errorField.text = "Please complete the required fields";
} else {
indexOfAt = emailField.text.indexOf("@");
lastIndexOfDot = emailField.text.lastIndexOf(".");
if (indexOfAt != -1 && lastIndexOfDot != -1) {
if (lastIndexOfDot < indexOfAt || indexOfAt == 0) {
errorField.text = "Please verify your email.";
} else if (lastIndexOfDot > (indexOfAt + 1)) {
sender.name = nameField.text;
sender.email = emailField.text;
sender.site = siteField.text;
sender.phone = phoneField.text;
sender.comment = commentField.text;
receiver.onLoad = function(success) {
if (success) {
gotoAndStop(2);
} else {
errorField.text = "Problem!! please resubmit";
}
};
sender.sendAndLoad("sendEmail.php", receiver, "POST");
} else {
errorField.text = "Make sure your '@' and '.' place correctly";
}
} else {
errorField.text = "Please enter valid email";
}
}
};
Radio Buttons/checkbox Disable One If Another Is Checked?
hi....
I am using the FFP Lightweight components set tickbox (this component is available at flashcomponents.net)
for YES and NO questions....
I want to put script in each tickbox to uncheck the other box next it if it gets chosen (so a user can't select yes and no)
I also want to add or subtract a value from a variable...
heres a sample of what i put on each tickbox instance... the syntax is definitely wrong:
on(release){
value = n14.getValue()
if value = (true)
(n14.setValue(false))
yellow -1;
else if value = (false)
(y14.setValue(true))
green++;
}
SOrry for my crappy actionscript.... thats why i need help!!
also i need help with a script calculating the top three of the variables of color after the quiz is completed...
-aleks
Checkbox Component V2 And Getting Values
So I have the latest and greatest Flash MX 2004 Pro and have dragged a checkbox component onto my stage and called it: selectAll_ch .
With V2 components, there is no change handler so in order to get the value I try adding this code directly to the instance of the checkbox:
on(click){
trace(selectAll_ch.getValue());
trace(this.getValue());
this.setLabel(this.getValue());
}
This results in two "undefined"s being printed to the trace window and the label being set to "undefined".
How do you get an on click event to give you the true / false value for the checkbox.
I am stumped!
Much thanks in advance,
Matt
Posting Checkbox Values To Txt
I realize this is an easy question, but the answer escapes me.
How is it possible to post an assigned value from a radiobutton or checkbox to a seperate txt file?
Posting Checkbox Values To Txt
I realize this is an easy question, but the answer escapes me.
How is it possible to post an assigned value from a radiobutton or checkbox to a seperate txt file?
Passing Checkbox Values In Forms
Hi All: Sorry if this is newbie, but I'm having trouble getting the Checkbox to work in a form. I don't understand whether or not the checkbox "_name" attribute is passed with a Boolean variable or whether I have to assign its value to a new variable.
If I want to use loadVariablesNum on an "onrelease" event, and I have a checkbox (let's say I've checked it) called "myCheckbox", will a variable called "myCheckbox" automagically be passed to the processing page with a Boolean value of "true" assigned to it?
Or do I have to "getState" on the checkbox and, if true, create a variable and pass it to the page using loadVariablesNum?
TIA, Andrew
Checkbox Values Disappear Between Scenes..
Hi all,
If anyone can help with this, i would be extremely grateful.. i would love to finally get some sleep!
I have a movie with several scenes. On one of the scenes I have several checkboxes (using flash smart clips), on level 0, nothing fancy.
When testing, I check some of the boxes, and then click on a button to go to another scene. When I click on a button in that scene to return to the checkbox scene, all the ticks have disappeared..
I've set all the default states to 'false'. I tried doing a setpropery to 'true' on release when going to a new scene, and then checking the value of the variable via debug in the new scene, but it still says 'false'??
any ideas what is going on?? any suggestions would be great.. thanks heaps
How Can I Retrive Checkbox Values From A Text File..?
Hello,
basically my titles says it
i have values on my form that is in check boxes and radio buttons
my check box is
checkboxu
andmy
radio button is
rG1
how can i retrieve this info back into flash?
i have done loadvariables,
but only the input text shows up
Dynamic Creation Of Radio Buttons In A Radio Button Group
Is there a way to dynamically add new radio buttons to a radioButtonGroup say from an xml file? I am looking for a similar functionality to what I would receive if I were to use a dataprovider for a comboBox (except I need to use radio buttons). Code samples are appreciated. Thanks
Adding Values From Multiple Radio Btn Groups
I have four radio button groups with each button having a specific value. When I submit the selections (via a push button), I need to add the values together and play a specific movie based on the total value of the four selected buttons. Any ideas on how to do this? I am not very good at AS yet, and I am working with Flash MX2004. Thanks for any and all help.
Here's what I have so far. I don't get any error messages, but I don't get any results either.
stop();
// Radio buttons
pump1 = "1";
pump2 = "2";
pump3 = "3";
tide1 = "4";
tide2 = "5";
tide3 = "6";
debris1 = "7";
debris2 = "8";
debris3 = "9";
fish1 = "10";
fish2 = "11";
// set value vars.
function onChange() {
item1 = pump_radio.getValue();
item2 = tide_radio.getValue();
item3 = debris_radio.getValue();
item4 = fish_radio.getValue();
}
// set ChangeHandlers
pump_radio.setChangeHandler ("onChange") ;
tide_radio.setChangeHandler ("onChange") ;
debris_radio.setChangeHandler ("onChange") ;
fish_radio.setChangeHandler ("onChange") ;
// calculate grandtotal
grandtotal = Number(item1)+Number(item2)+Number(item3)+Number(i tem4);
// function for submit button
onSubmit = function () {
switch (grandtotal) {
case 22 : gotoAndPlay("Scene2",1); break;
case 23 : gotoAndPlay("Scene3",1); break;
default : stop();
}
}
Radio Buttons / Variables/ Email Form Values
Hi,
I am not very proficient in actionscript at all. I just managed to find a perl script i was able to configure to get the results of a little (test) form i made back to me (this took me a week 24/7 !!!)
anyway, there are four input text boxes with variables named name, email, zip, colour. They return the expected values. (yay)
However i have two radio buttons whch i called them both memberGroup (which had labels and data values of yes and no) and i dont jknow whats going on there???This is what my form emails me:
__________________________________________________
name: celia
zip: 12778
colour: blueish green
FRadioButtonGroupClass: [type Function]
memberGroup: [object Object]
FRadioButtonClass: [type Function]
email: niinn@nanna.com
FUIComponentClass: [type Function]
__________________________________________________
Ive searched and searched forums and read MM tutorials but cant understand what is happening.
Is anyone able to explain the following:
2)what is the variable names of components? is it memberGroup (for my above example)?
1)getValue & getData? How do i use these. Can anyone give me examples.
Basically, the above is all my form consists of.
Thanks in advance for anyones patience in explaining this to me and helping me here
Francesca
ASSIGNIN VALUES TO RADIO BUTTONS AND SUBMITTING IT TO EMAIL AN ADDRESS
Hi,
I think I'm missing something regarding simple RADIO BUTTONS in FLASH.
I am trying to create a simple form that will submit the value of a radio button to an email address. I can't seem to get my head around how this is done in FLASH, as it seems very different from HTML
I have a SCENE with 5 RADIO BUTTONS on it (dragged out from common library / smart clips). I want these radio buttons to have a VALUE (HTML lingo) and be able to SUBMIT that value to an email address when I have CLICKED the radio button AND then clicked "SUBMIT" ie... I want the "SUBMIT" button to submit the VALUE assigned to the radio button.
In a nutshell:
WHAT is the VALUE the RADIO button is submitting - the LABEL or the NAME (in clip parameters)?
And how do I get a SUBMIT button to submit the VALUE to an email address?
What code do I use, and where do I put it?
I'm sorry if this sounds stupid, but I've checked out several tutorials and some FLA's, but nothing seems to be helping me.
I'm a DREAMWEAVER user, so anyone who has created a form there, knows how easy it is, that's exactly what I'm trying to do in FLASH...
Any help would truly be appreciated!!!
Thank you for your patience with my question!!!
Button That Controlls Checkbox
Hi i am having a huge problem over an email form that sends data accordingly to what the user chose from a series of checkboxes...
The application in Flash works fine and the emails the user sends showing which checkboxes are selected are working fine as well... however..
I need to add a button (Add To Basket) that when the user clicks it automatically the checkbox is selected without having to tick it from the actual checkbox...
I tried this.selected = true; the checkbox looks like its ticked but when i send the email i dont receive information from the checkboxes that are clicked with the add to basket button. I only receive information from the checkboxes that the user clicked on them...
How can i say to Flash.....to send me information also from the checkboxes that are clicked from that button....?
I hope i made it clear about what this is all about...
Thanks for taking the time to read this if you have any ideas that would be great help
Button Click To Clear Checkbox
Hi all,
I'm building a form which includes the checkbox smart clip. The form has a "Clear" button which sets all the text boxes to "". I'd also like the Clear button to uncheck the checkbox if it's checked.
Can anyone help?
Thanks,
JEff
Checkbox & Button Label Fonts
Hello
To begin with I am Using Flash MX 2004 and I am a complete and utter Flash novice. )
Ok to the probelm ... I am trying to embed some questions in a standard Flash presentation. I have opened one of the Quiz Templates that comes with this version of Flash and have dragged Multiple Choice and Fill the Blank questions onto 2 separate frames on the same layer.
I have also updated the question text and available options using the Component Inspector. Everything works well except for the fonts which only becomes aparent when I publish and run the file.
For both questions the question text and inital feedback text appear in my preferred font (verdana). But the options and the Button label appears for milliseconds in what looks to be _sans before displaying them in verdana.
I've tried Edit>Find and Replace for Fonts but this search doesn't find the button or instance labels.
I've aslo read the help file and I've found that styles can be set globally and on a component instance. So I've included _global.style.setStyle("fontFamily" , "verdana"); on the first frame of my _actions layer and I've tried a component version of this wherever I thought it might work ... all to no avail! HELP!!
Thanks
Dcon
PS ... Because I am so green I need to be spoon fed ... I need to know exactly what to do
Checkbox Is Supposed To Activate Button
Hi board,
what could be the reason why my checkbox doesn't activate the button?
ActionScript Code:
var btTerms:Button;
function addNextSectionButton():Void {
// ---------------- <create button to go to the "terms section"> -----------------------\
btTerms = _global.mcCard.createClassObject(Button, "btTerms", 10);
this.onEnterFrame = function() {
delete this.onEnterFrame;
btTerms.label = "Enter your contact details.";
btTerms.enabled = false;
btTerms._width = 270;
btTerms._x = 370; //(_global.mcCard._width - _global.mcCard.btTerms._width)-5;
btTerms._y = 341; //(_global.mcCard._height - _global.mcCard.btTerms._height)-5;
// Event Handler for Terms
btTerms.onRelease = function() {
_global.mcCard.destroyObject("btTerms");
_global.mcCard.gotoAndStop('form');
};
// ---------------- </create button to go to the next section> ------------------------- \
};
}
function addTermCheckBox():Void {
cbTestTerms = _global.mcCard.createClassObject(mx.controls.CheckBox, "cbTestTerms", this.getNextHighestDepth());
cbTestTerms.selected = false;
cbTestTerms._x = 370;
cbTestTerms._y = 320;
tfAcceptTerms = _global.mcCard.createTextField("tfAcceptTerms", 100, 385, 315, 300, 30);
tfAcceptTerms.htmlText = "I agree to the terms and conditions.";
}
// Create handler for checkBox event.
function checkboxHandler(evt_obj:Object):Void {
btTerms.enabled = evt_obj.target.selected;
}
cbTestTerms.addEventListener("click", checkboxHandler);
Make Button Work Only If A Radio Button Chosen?
Hi I hope you can help. I have a series of questions on different key frames. You advance by pressing a button. But I would like to make it that you need to attempt to answer and choose an answer from a radio button before the button allows you to move on. I could use a dynamx text box to produce feedback saying you must choose an answer. Could anyone help me with the code I would need to put on?
stockdill
Make Button Work Only If A Radio Button Chosen?
Hi I hope you can help. I have a series of questions on different key frames. You advance by pressing a button. But I would like to make it that you need to attempt to answer and choose an answer from a radio button before the button allows you to move on. I could use a dynamx text box to produce feedback saying you must choose an answer. Could anyone help me with the code I would need to put on?
stockdill
[F8] Checkbox & Masks - How Do I Embed The Checkbox Font?
i'm trying to put checkboxes under a mask, but can't seem to succesfully embed the font for the checkboxes so that they labels actually appear...
can someone please give me directions as to how/where to set the checkbox font to be embedded? the default font is fine...
TIA
Newbie Checkbox/Button State Question
I am trying to learn how to start and stop a movie clip already in the current files flash library and in the root based on whether a component such as a checkbox or button is enabled or not.
I reviewed the help files in Flash MX and didn't find enough useful info to do this simple task. I am trying to do this all in one frame instead of going to another frame if possible.
I have a movie clip of a bouncing ball currently that would start playing and become visible when a checkbox is enabled or true. Then when the checkbox is disabled or false the movie of the bouncing ball is not visible and therefore is stopped.
Any help would be appreciated. Thanks.
John
My Work so far:
Bouncing Ball instance name = Ball
Checkbox instance name = CB1 (initial state is false)
What I tried so far...
// Sets the Ball movie clip to not visible to start
movievis(_root.Ball,0)
// Movie visible or not function
function movievis(movie, false){
setProperty(movie,_visible,false);
}
// Checks the checkbox value and sets movie visible if true
if (_root.CB1.getState() == true){
movievis(_root.Ball,1);
}
Checkbox Quiz, Continue Button Problem
Hi guys, got a bit of a problem
Ive set up a multi-choice quiz using check boxes, the user clicks them gets feedback blah, blah, blah. My problem is I want the continue button to appear when the user clicks one of the check boxes (so that the user just can't click continue without checking a box).
My guess is that I should use an if/else statement on the mc that the quiz is contained
if (code I cant get)
{mcbtn._visible = 1;}
else
{mcbtn._visible = 0;}
Anyone got any ideas or an alternative method
As youve probably realised Im pretty pants at action script so any help would be greatly appreciated.
Cheers.
|