Howdy all - gettin’ ever closer to putting this project down for awhile. Besides, it’s due in 2 days!
I have several movie clips that I’d like to control in the following manner:
3 groups of checkboxes that control visibility. Each group of checkboxes would be controlled by a radio button.
That is, when radio 1 is true, the corresponding groups of checkboxes is enabled and the user can click away, making the corresponding movie clips become visible or invisible. The other two groups of checkboxes would be disabled. Then, when radio 2 is true, IT’S group of checkboxes would become enabled, and the others disabled, etc.
So I thought I would try using a switch statement and put all movie clips and their corresponding checkboxes in arrays
array1 [MC1, MC2, MC3]
array1Boxes[CB1, CB2, CB3]
array2[MC4, MC5, MC6]
array2Boxes[CB4, CB5, CB6]
etc.
and then do something like this:
radio = component.getValue();
switch (radio)
case (“name of radio1”):
function (ChangeHandler on checkboxes) to get value in array1Boxes and make array1 MC’s visible. At same time make other arrays invisible and disable other arrayBoxes.
break;
case (“name of radio2”):
etc.
But obviously it doesn’t work. This is my first time working with a switch statement in Flash. Am I missing something obvious or is it a matter of a quoation mark missing or what? I’m not totally sure what belongs in the case () itself.
Any ideas?
:h: