Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Radio Button Help


Hello,

I'm a teacher that's been trying to create a quiz for my students. I'm pretty new to flash so I don't know the syntax to this fairly simple task. Anyone who can assist I'd appreciate it as I only have a few more days to put this together before the rush of school begind again.

Basically I want to create 4 radio buttons. When a submit button is clicked, I'd like it to know the selected value of the radio button state so that it can be posted to an asp page.

So far I have fill in the blank fields that are sent to my asp page just fine. The radio button value however isn't coming through. Instead I get the following in the url: answer=%5Bobject+Object%5D

Now 'answer' is the name of the radio group. Each radio button within the group are labeled a,b,c,d. How do I get answer to equal what the label value is. For instance, if the student selects answer 'C' I'd like the posted data for the answer field to simply show: answer=c in the posted data url.

This is the syntax I'm using to post the data for test page:
on(press){
getURL("http://www.lbsc.edu/test5/result1.asp","","post");
}

Any help would be greatly appreciated!




FlashKit > Flash Help > Flash MX
Posted on: 01-05-2007, 04:16 AM


View Complete Forum Thread with Replies

Sponsored Links:

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

View Replies !    View Related
Deselect All Radio Buttons In A Radio Button Group
how do you do it? --like if you want to reset all the fields in a form.

thanks.

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
Radio Button
Can anyone help me with the use of radio buttons.

I would like to have radio buttons on a map and be able to choose two buttons then get a price for distance travelled.

A prime example of this would be a subway, where you choose the start station and then the end station and get the price for the journey after clicking a button called Get Fare.
I would be most grateful if anyone can help.

Just to let you know I'm a complete novice when it comes to radio buttons, so be gentle.

I posted this message in the newbies form but no-one has answered, I know it's simple but for the life of me I cannot seem to figure it out.

http://uk.geocities.com/larf2day/

View Replies !    View Related
Radio Button Help
Case is...

1. Got Multiple Answers (at least 4 per screen)
2. Only one is correct
3. After getting the correct answer, score adds 1


I really really need your help guys! Please, I need to know how to do this asap...

View Replies !    View Related
Radio Button HELP
I posted this on actionscript.org earlier, and still need some assistance.

I am using Flash MX, and have designed a page that, once the end-user selects their information via Radio Button, I want to send them to a certain part of the time-line to show them a video of how to setup their machine to their configuration.

I have added the screen as an attachment so that a visual reference can be used.

There are two groups of Radio Buttons, one set of three on the top, and one set of two on the bottom.

I understand that I need to use a function to get the information from the buttons, but that's where the difficulty comes in. I'm not sure how or where to start. =(

Any help on this would be greatly appreciated. Thanks a lot, in advance!

View Replies !    View Related
Radio Button Help
hi, i just about have my buttons all ready but something in the script is a little screwy.

i have a bunch of radio buttons in a parent clip and i have this script in the parent:

onClipEvent (mouseDown) {
if (hitTest(_root._xmouse, _root._ymouse, false)) {
for (item in this) {
rButton = this[item];
if (rButton.getState()) {
loadMovie (rButton.getLabel()+".swf", "_root.anchor");
break;
}
}
}
}

View Replies !    View Related
Radio Button Help, Please
i am having a very tough time trying to use radio buttons on my flash form.

The form is processed by a java servlet. there are about 10 groups of radio buttons, each group having 2 radio buttons (Add and Remove).

the problem i have is when a user does not select either ADD or REMOVE from a particular set of radio buttons. what value is passed to my servlet when both radio buttons are blank?

I have a loop in my servlet that checks for null and "", but that doesn't seem to work. Here's the loop (just a portion of it):

int i=0;
String[] soft= new String[23];


if (req.getParameter("GCard")!="")
{
soft[i]=req.getParameter("GCard") + " Guard Card";
i++;
}
if (req.getParameter("PeopSft")!=null)
{
soft[i]=req.getParameter("PeopSft") + " PeopleSoft";
i++;
}

I have tried both the null and "" to see which one would work, they both do not work.

Here is how i pass the info from flash mx:

PeopSft = PeopSft.getValue();
GCard = GCard.getValue();
getURL("http://wegweb/servlet/FLnewuser.class", "_self", "GET");
}

Can anyone help me??? is there a way to set what gets sent to the servlet if both radio buttons are not checked?
THANKS!!

View Replies !    View Related
Radio Button If-else Help
Have a radio button test with 4 possible answers. Only # 1 (or in this array place 0)is corrct, and I want the "check1" movieclip to play, anything else checked, and "wrong" movie clip plays....

no matter what I press, the "wrong" movieclip plays when I validate...

What am I doing wrong..!!!!!!

Thanks...

Here's the code..:


stop();

btn1.onRelease = function() {
checkAns();

};

function checkAns() {


AnswerQ1=new Array(_root.A1.getValue(),_root.A2.getValue(),_roo t.A3.getValue(),_root.A4.getValue());
if (AnswerQ1[0] && !AnswerQ1[1] && !AnswerQ1[2] && !AnswerQ1[3]) {
init1 = {_x:45,_y:160};
_root.attachMovie("check1", "check1",20,init1);

} else {
init1 = {_x:45,_y:160};
_root.attachMovie("wrong", "wrong",21,init1);
}
}

View Replies !    View Related
Radio Button
hi,


I use Flash MX and need to increase the size of radio button

component.This may sound silly but i am not able to figure it out,

Thx,

Ricky.

View Replies !    View Related
Radio Button Help
I have radio buttons with tabs set... and if disable keyboard shortcuts is selected in testing mode.. it tabs from one item to the next... but the main issue is...

I want to beable to hit spacebar and enable the current radio button I am on... is this possible? if i select one of the Radios with my mouse... my tabs are gone and nothing tabs anymore... I have place 2 links at the bottom of this one is my .fla and the other is my .swf.. if anyone can help it would be much appreciated...

Thanks,
Carlos


www.techyhelp.com/flashattempt/Radios.swf

www.techyhelp.com/flashattempt/Radios.fla

once again i appreciate any help...

View Replies !    View Related
Radio Button To PHP?
Hi guys, me again

I just searched trought the hole forum about this one and didnt have any good awnser for it, i just found lots of ppl with the same problem...that i think could be easy ...(not to me of course )

Well, im trying to make a SIMPLE radio button question like

Gender?: ( ) male ( ) female

and send the data to a PHP script. The problem is, i dont know how to get this data into the php (ill send that to an e-mail).

Anyone know whats the code to flash and the script to php so it may work??? Going crazy out here....

Thanks in advance..

View Replies !    View Related
Radio Button
hi there, im really sorry but this question is not for flash but its for html. i didnt find n e html board here. dont u guys think there shud be html related message board also put up here. ok n e wayz my question is that if someone clicks on a radio button it shud go up the page where therz an achor tag define. for e.g

i have some text at top of the page. and my form is way bottom at the end of the page. now if some1 click on dat radio button he shud go at top of the page. so pls help me out in the script. thnx in advance.

View Replies !    View Related
Radio Button Help
I am trying to enable a function based on a radio button selection in flash MX. I would like to do so without a submit button...is that possible? I have 2 radio buttons in the same group.

If the user selects the 1st radio button, this will start the drawPole_fn(1)

if the second radio button is selected, this will start drawPole_fn(2)

What happens with my current code is drawPole_fn(1) is enabled, without any radio button selected. I would like the functions to start after a button is selected.

Here is my code:

function setPoleType_fn()

{
poleDesign=ControPanel_mc.poleDesign_rdo.getValue( );
if(poleDesign=="Standard")
{
drawPole_fn(1);
}
else
{
drawPole_fn(2);
}
}


Thank you for any help you can give!

View Replies !    View Related
Radio Button Value
Greetings

I'm trying get the value of a radio button group, ie, return the value of the selected radio button.

have tried the following:


PHP Code:



radioGroup.data
radioGroup.selection
radioGroup.selected




but nothing is returning the value of the selected radio button.

Have also tried



thanks
PHP Code:



if (_root.radioQuestion == "yes") {
myAnswer = "yes";
} else {
myAnswer = "no";
}





PHP Code:



if (radioQuestion.selectedData == "yes") {
myAnswer = "yes";
} else {
myAnswer = "no";
}





PHP Code:



if (radioQuestion.selection.data == "yes") {
myAnswer = "yes";
} else {
myAnswer = "no";
}




but nothing is working.

Can anyone tell me how to trace the value of the selected radio button?

thanks

View Replies !    View Related
Radio Button & PHP
I'm trying to make a form containing radio buttons work together with some text fields using php, i already have all the text fields working just need the radio buttons to work so i will only post the radio part.

for the 1st frame I have :

fscommand ("allowscale", "false");
mailform = "appraisal.php";
action = "";
stop ();

for the 1st radio button's Parameters I have:
Component:maleRadio
Groupname: gender
label placement: right
selected: false
and second radio button
Component:femaleRadio
Groupname: gender
label placement: right
selected: false

This is the part where I dont know what to do. I believe I need an action script around here to make it work, for the submit button i have:





on (release) {
if ((vemail.indexOf("@") != -1) && (vemail.indexOf(".") != -1) && (length(vemail)>5)) {
action = "Send";
loadVariablesNum("appraisal.php", 0, "POST");
nextFrame();
} else {
vemail = "Please enter email";
action = "";
stop();
}
}



Can you please help me or give me an example? i'll appreciate it, thanks.

View Replies !    View Related
Radio Button
Hi.

Does anyone know how to add a radio button to a web form in flash?
It needs to post to an asp file.

Thanks and Happy New Year.

View Replies !    View Related
How Do I Get A Value For A Radio Button?
How Do I Get A Value For A Radio Button component? Do I reference the instance name the groupName? I'm new to components for Flash 8 so can anyone help me?

View Replies !    View Related
Radio Button.... How Do I Do This?
I have a series of five radio buttons......it's a multiple choice question...that I need answered.

I want which ever one the user clicks to be recorded and then sent to a PHP script which will then in turn send it in an email.

I am also having them fill out a text field for their email , and the message they are sending.

But how do I do this? I am lost and would appreciate some help.

This is the PHP code....I'm using...


$sendTo = "devon@devontracey.com";
$subject = "My Flash site reply";

// variables are sent to this PHP page through
// the POST method. $_POST is a global associative array
// of variables passed through this method. From that, we
// can get the values sent to this page from Flash and
// assign them to appropriate variables which can be used
// in the PHP mail() function.


// header information not including sendTo and Subject
// these all go in one variable. First, include From:
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">
";
// next include a replyto
$headers .= "Reply-To: " . $_POST["email"] . "
";
// often email servers won't allow emails to be sent to
// domains other than their own. The return path here will
// often lift that restriction so, for instance, you could send
// email to a hotmail account. (hosting provider settings may vary)
// technically bounced email is supposed to go to the return-path email
$headers .= "Return-path: " . $_POST["email"];

// now we can add the content of the message to a body variable
$message = $_POST["message"];



// once the variables have been defined, they can be included
// in the mail function call which will send you an email
mail($sendTo, $subject, $message, $headers);

?>

View Replies !    View Related
Radio Button
how can i set a radio button so that it isnt selectable, if i do

radio1.setEnabled(false);

it changes its apperance so it looks like you cant select it, but you still can???

View Replies !    View Related
Radio Button HELP Please
I am creating a quiz for a school project and I need help customizing radio buttons.

How can i change the color and size of the text? It seems impossible. Is there actionscript I can use?

Any help would be much appreciated. Thank you.

View Replies !    View Related
How To Get The Value Of A Radio Button
Hi

I'm using the Radio Button component of flash and I drag and drop it on my scene.

I named the RadioButtonGroup as "test" but my problem is that I can't get the value of the selected button.

If I do:

Code:
trace(test.selectedData);

I get the following error message: 1120: Access of undefined property test.

But I set the RadioButtonGroup as test in the property panel of each button.
What's wrong?

Many thanks for your help

View Replies !    View Related
[F8] Need A Radio Button On
Hi,

I have started a quiz game where you have 4 options (A,B,C,D). To select the answer desired, the player must select one of the radio buttons. But I'm also trying to make it so you can press A,B,C, or D on the keyboard to select the radio buttons also -- the problem is my script won't work. I've tried a couple of codes from other posts, but they won't work either.
Help please.

(btw, I made a bunch of random attempts to make it work)

View Replies !    View Related
[F8] Radio Button Help
I set up an emailer form with radio buttons. Problem is that the input text fields and the radio button label do not appear unless the email form mc is placed directly on the _root timeline. If I place the email form inside another mc then place that mc on the _root timeline, it will not show the text for the radio button or input text. Thanks

View Replies !    View Related
[F8] Radio Button Help Please
Hello,

So I'm making an application that requires the user to make a selection on the first frame via a radio button. There will be multiple buttons (example)...
selection 1
selection 2
selection 3

Each Selection needs to load images from an external folder into the provided empty movieclips ON OTHER FRAMES. The problem is I don't know how to target a different frame and load the images. I obviously have to store the info in a variable. Does anyone have a good suggestion on how to apply it?

Here is what I have on the radio buttons to monitor the selection...

var rbListener:Object = new Object();
rbListener.click = function(evt_obj:Object){
if(radioGroup.selection == rb1){
trace("rb1");
} else if(radioGroup.selection == rb2){
trace("rb2");
} else {
trace("no selection");
}

}
// Add listener.ll
radioGroup.addEventListener("click", rbListener);


And this is how I currently load the images without a selection
loadMovie("sponsor/logoTest.jpg", _root.logo_mc);

View Replies !    View Related
Radio Button
Hi,
I want to make two radio buttons in my flash site,
how can I solve that?

thanks for any response...

View Replies !    View Related
Radio Button
Is it possible to make an radio button or 2 in flash mx? maybe with an actionscript.

I'm making a mailinglist with input text for email adress so far i get it but is it possible 2 make 2 radio buttons with subscribe and unsubscribe??

Can someone help me if it's possible how to do it?

Thanx Jos

View Replies !    View Related
Radio Button.... How Do I Do This?
I have a series of five radio buttons......it's a multiple choice question...that I need answered.
I want which ever one the user clicks to be recorded and then sent to a PHP script which will then in turn send it in an email.
I am also having them fill out a text field for their email , and the message they are sending.
But how do I do this? I am lost and would appreciate some help.
This is the PHP code....I'm using...

$sendTo = "devon@devontracey.com";
$subject = "My Flash site reply";
// variables are sent to this PHP page through
// the POST method. $_POST is a global associative array
// of variables passed through this method. From that, we
// can get the values sent to this page from Flash and
// assign them to appropriate variables which can be used
// in the PHP mail() function.

// header information not including sendTo and Subject
// these all go in one variable. First, include From:
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">
";
// next include a replyto
$headers .= "Reply-To: " . $_POST["email"] . "
";
// often email servers won't allow emails to be sent to
// domains other than their own. The return path here will
// often lift that restriction so, for instance, you could send
// email to a hotmail account. (hosting provider settings may vary)
// technically bounced email is supposed to go to the return-path email
$headers .= "Return-path: " . $_POST["email"];
// now we can add the content of the message to a body variable
$message = $_POST["message"];

// once the variables have been defined, they can be included
// in the mail function call which will send you an email
mail($sendTo, $subject, $message, $headers);
?>

View Replies !    View Related
Radio Button Help Please...
My mind can't seem to digest how to make the radio buttons work, even after reading the action script guide in Flash MX...

please help me here, I'm VERY lost...

Situation:
Four choices, when the correct one is chosen, score adds 1 point.

Thanks. I really need this...

View Replies !    View Related
Radio Button Help
I was wondering if you are able to refer to the radiobutton groupname? I have about 10 radio buttons all with the same groupname and when I click on my next button, if none are selected an alert message come's up. But am I able to say: "if (groupname(radiogroup.selected == false));" Does the groupname have those sorts of properties??

View Replies !    View Related
Radio Button Help?
hey all,

just wondering how you work the radio button component so that i can have text appearing when a specific radio button from the group is selected and my submit button is pressed it will display the text and execute a function i have written...i know its to do with a listener and addEvent.

cheers in advance

View Replies !    View Related
Radio Button HELP PLEASE
I have an form that i made in flash, in this form i have included input text boxes and radio buttons. the problem i am having is when i receive the email sent by the form with all the input text box info but the radio buttons return is [object Object]. anybody else had this problem before? im using php to sent the info from flash using POST method. if anyone knows how to fix this please advise.

View Replies !    View Related
How To Get The Value Of A Radio Button
Hi

I'm using the Radio Button component of flash and I drag and drop it on my scene.

I named the RadioButtonGroup as "test" but my problem is that I can't get the value of the selected button.

If I do:

Code:
trace(test.selectedData);
I get the following error message: 1120: Access of undefined property test.

But I set the RadioButtonGroup as test in the property panel of each button.
What's wrong?

Many thanks for your help

View Replies !    View Related
How Get The Radio Button Value
people at forum, how can i get value from the radio button in flash ? i use the standard radio button that include in flash mx. i want to save the value in asp, using access database... thanks.

View Replies !    View Related
Radio Button
Is it possible to make an radio button or 2 in flash mx? maybe with an actionscript.

I'm making a mailinglist with input text for email adress so far i get it but is it possible 2 make 2 radio buttons with subscribe and unsubscribe??

Can someone help me if it's possible how to do it?

Thanx Jos

View Replies !    View Related
Radio Button Pt2.
Problem 1:

Now that I have the button menu set up I need the button to call a MC. So if u click on button 1 it will open MC one. When I click on button 2 it will close the first MC and open MC 2.

Problem 2:

Some of these MCs will have a form checkbox in them. When the user clicks on it I want it to stay checked. So let’s say in MC1 I have a check box and the user checks it. Then he/ she goes to MC2 and hits another checkbox then decides to go back to MC1 to uncheck the first checkbox and check another inside MC1. Is it possible to make the form info stick even while swapping out MCs?

View Replies !    View Related
Radio Button
I want to create a 5 button menu. In this menu I will have MC that has two frames that have labels (frame 1 – Grey, Frame 2 - Orange). I will drag that MC 5 times into the main timeline. I then would like to click on the first one and it turn orange then click on the 2nd one and have it turn orange while the first one goes back to gray (like a radio button). I have an example

www.deviatemedia.com/ww2/button_test.zip

I was working on but it is not working and I don’t know why (noob at action scripting)

Can anyone give me any insight?

View Replies !    View Related
Radio Button.... How Do I Do This?
I have a series of five radio buttons......it's a multiple choice question...that I need answered.

I want which ever one the user clicks to be recorded and then sent to a PHP script which will then in turn send it in an email.

I am also having them fill out a text field for their email , and the message they are sending.

But how do I do this? I am lost and would appreciate some help.

This is the PHP code....I'm using...


$sendTo = "devon@devontracey.com";
$subject = "My Flash site reply";

// variables are sent to this PHP page through
// the POST method. $_POST is a global associative array
// of variables passed through this method. From that, we
// can get the values sent to this page from Flash and
// assign them to appropriate variables which can be used
// in the PHP mail() function.


// header information not including sendTo and Subject
// these all go in one variable. First, include From:
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">
";
// next include a replyto
$headers .= "Reply-To: " . $_POST["email"] . "
";
// often email servers won't allow emails to be sent to
// domains other than their own. The return path here will
// often lift that restriction so, for instance, you could send
// email to a hotmail account. (hosting provider settings may vary)
// technically bounced email is supposed to go to the return-path email
$headers .= "Return-path: " . $_POST["email"];

// now we can add the content of the message to a body variable
$message = $_POST["message"];



// once the variables have been defined, they can be included
// in the mail function call which will send you an email
mail($sendTo, $subject, $message, $headers);

?>

View Replies !    View Related
Radio Button
i'm posting again as i don't think i explained myself before... i have two radio buttons, yes and no... i want the variable of the yes or no to be sent to the php script, how do i do this and what do i need to add to the php script...

sorry for reposting a similar question

View Replies !    View Related
Radio Button
i have struck with the following task.
" I have a radio button, and message box component.
the message box component's visibility has been set to false.
The requirement is when the user clicks the radio button i
want the message box's visibility to become true.
i tried giving mouse event to the radio button, but it proved be useless.
do help me out ."

thanx

View Replies !    View Related
Radio Button
So I made a video player with a XML playlist

In the tutorial the RADIO buttons are used which seems comprehensible because it seems there are the only types of buttons to be able to have XML data embed.... or i don't know how calling that

My question is:

IS there a way to not use those AWFUL radio buttons and instead using my beautiful customized Buttons??

Thanks for your inputs

View Replies !    View Related
Contents Of Radio Button
Anybody know the script for checking whether a radio button is checked or not? I have a bunch of radio buttons ( all of which work fine ) but I want to have Flash check to see if the radio button has been checked before it sends the contents of the clip. Here is the script I am using to pass the label info of the script:

onClipEvent (mouseDown) {
if (hitTest(_root._xmouse, _root._ymouse, false)) {
for (item in this) {
rButton = this[item];
if (rButton.getState()) {
_parent.game1 = (rButton.getLabel());
break;
}
}
}
}

This code works fine and always sends the label info properly. Any reference to a variable game1 doesn't seem to work. Any help would be greatly appreciated. Thanks!

Flashlite

View Replies !    View Related
Radio Button Problem
Hi there,
I have radio button group movie clip which is has 4 values(A,B,C,D) and there's no default value when it was on being released until user clicked one of them. I was using this clip on my frame by frame quiz movie, but when I moved to second frame, the value I've chosen on the first frame on that radio button group appeared following the first one. I already put statement gotoAndPlay(1); Stop(); on each particular radio button group instance on each frame, but it doesn't work out. How to solve this problem? Thanks in advance guys.

View Replies !    View Related
Radio Button Script
What does this mean

radbuttons.gotoAndStop(1);

and also this

_parent.theChosenOne = 0;
stop ();

View Replies !    View Related
Radio Button Craziness
Hi guys. Sorry, but this is a problem I have been workin on for days and it is driving me crazy! Now, it must be done friday and I have no other choice but to ask the experts!
OK, I have three radio buttons in my movie that all lay in a movie clip called "musak". They trigger three different soundtracks the user can choose from. I would like, at the beginning of the movie for the first radio button to be automatically lit, and the first soundtrack play. I have tried this by telling it to gotoAndStop(2); in the first frame of the movie, but then the radio button effect where the others go out when the first is pushed and so forth doesn't work. It stays on frame 2. On the buttons I have;
(on MC)

onClipEvent (load) {
sButtonID = this._name.substr(3);
nButtonID = Number(sButtonID);
}

(on button)

on (release,dragOut) {
aktiv.position=0;
loadMovie("hg1.swf","_root.tonMC");

_parent["pBn"+_parent.nButtonCurrent].gotoAndStop(1);
_parent.nButtonCurrent=nButtonID;
gotoAndStop (2);
}

(on frame 1 of main movie)

afpBn = new Array();
for (cBn=0; cBn<4;cBn++){
afpBn[cBn]=1
}
I would like to create a variable to check which button is currently active, but have no idea how. Please, please take a look and I would appreciate any help! Thank You!
miakazi

View Replies !    View Related
Radio Button Problem..
Hi,

I'm trying to get the name of the radio button i've pressed but I keep getting undefined instead. Can someone tell me what is wrong with my code? Here it is:


function setRadioBtn(component){
with(_root){
radioBtn = component._name;
trace(radioBtn);
}
}

on each of my radio button's change handler, i've entered "setRadioBtn" as the value.

View Replies !    View Related
RADIO BUTTON Issue
Hi,

This is a little advanced for me, so I hope someone can help me out!!

What I need to do:

XML is fed into my movie. From that, I have to DYNAMICALLY place a list of radio buttons on the stage. (they work as regular radio buttons). Essentially DRAW the correct number of buttons depending on the XML.

DRAWING THEM IS NO PROBLEM.
ASSIGING VALUES TO THEM IS NO PROBLEM.

The problem is this....

I have to draw them one at a time (I never know how many until the XML is read).

Therefore, the radio button MC's are not aware of each other, and radio buttons have to work as a group, or one big clip.

Is there a way to dynamically place MC's and THEN group them? OR force them all to OBEY the same timeline etc...???

Thanks in advance!!! Appreciate any feed back!!!

View Replies !    View Related
Radio Button Labels
G'Day all,

I'm having problems setting the label of a radioButton using action script as aposed to using the property panels. Has anyone else done something similar and had similar problems?

View Replies !    View Related
Radio Button Name Flash MX
I have:

function checkBox(component, frame) {
_root[component._name+"value"] = component.getValue();
if (component.getValue() != undefined) {
trace(component.getValue());
gotoAndStop(frame);
} else {
trace("vælg noget din tabernar!!");
}
}

this as a function in my first frame.

Then I have 3 radio buttons and one submit button with this action:

on (release) {
//trace("radiogruppet = " + radiogroup.name());
checkBox(radiogroup,10);
}

the 10 is the frame number I want my movie to go to when I'm happy with the results.


Okay, - my radio buttons are named 01-a, 01-b, 01-c and these things work just fine, - but I want the computer to remember what radio button that the user selected.

I mean not the value of say 01-a, - but that i was 01-a....

on frame 10 I have some other radio buttons and they use the same function as frame 1, - so maybe I can make an array to collect the answers, - any idears??

So how do I get the name of the radio button that was selected???


Regards


Godowsky

View Replies !    View Related
Radio Button Widget. Please Help..
Ok so i found what i need to do my radio buttons on the macromedia site and i understand it all but the sample file they refer to isn't on my cd nor can i find it on the site..help anyone.

this is the tutorial file i'm trying to do.

http://www.macromedia.com/support/fl.../widget02.html

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved