hello,
I need a radiobutton to output two numbers in to two different text boxes.
Like, if I would to select a sofa(radiobutton_1), it would give me the cost and yardage needed for the fabric.
then I would pic an ottoman(radiobutton_2), and it would add the two.
right now Im using the data(in parameters) from the button itself to get one number(cost):
http://abjupholstery.com/test.html
Thanxx.
A1.group = rb_obj;
A2.group = rb_obj;
A3.group = rb_obj;
A4.group = rb_obj;
B1.group = rb_obj;
B2.group = rb_obj;
B3.group = rb_obj;
B4.group = rb_obj;
C1.group = rb_obj;
C2.group = rb_obj;
C3.group = rb_obj;
C4.group = rb_obj;
// Create listener for radio buttons.
var rb_obj:Object = new Object();
rb_obj.click = function(evt:Object) {
// Prints out the "data" value for selected radio button.
trace(evt.target.selection.data);
// Update total value.
Total.text = AGroup.selection.data+BGroup.selection.data+CGroup.selection.data;
};
AGroup.addEventListener("click", rb_obj);
BGroup.addEventListener("click", rb_obj);
CGroup.addEventListener("click", rb_obj);
// Display the initial total value based on the default selection.
rb_obj.click();