Can’t figure this out, every example I look at deals only with one set of radio buttons. I have 5 sets. Each set represents an answer to a question that needs to be stored true or false so that when the submit button is pressed the movie moves to the result frame which will have 5 separate mc each with 2 frames in them. Each of the two frames contains a button that corresponds to a frame in the movie that deals with the true or false answer. I need each separate answer to set which button is shown.
radio button labels are: one_yes, one_no in radio group name questionOne
with one_yes state true, data set to true, one_no state false, data set to false.
two_yes, two_no in radio group name questionTwo
with two_yes state true, data set to true, two_no state false, data set to false.
the third forth and fifth radio groups are set up the same.
Here is the actionscript I have on the frame labeled questions which has all the radiobuttons and submit, reset buttons in it.
stop() ;
//the display function
function radioDisplay (component){
radio = component.getData();
}
// Reset button function
onReset = function () {
// radio buttons
one_yes.setValue(true);
two_yes.setValue(true);
three_yes.setValue(true);
four_yes.setValue(true);
five_yes.setValue(true);
}
onSubmit=function(){
_root.gotoAndStop(“result”);
}
trace(questionOne);
my trace comes back [object object]
can you give me any suggestions.
thanks
bigRed