Hello fellow flashers, I need some help with if statements.
I’m building a flash banner with CS6/AS2 that has 4 radio buttons that once the user rolls over, they mark with a checkmark. I want the user to only be able to select 2 of the 4 at any time.
My current set up:
- One movie clip that stores the Check on/off (checkmark_mc) 4 instances of this
- 4 inviz buttons that control the check on/off
Code that drives this:
Checkmark_mc has two vars stored (var checkmarked = false; and var checkmarked = true)
buttons each have this:
on(rollOver){
if(checkmark.checkmarked == false){
checkmark.gotoAndStop(2);
}
if(checkmark.checkmarked == true){
checkmark.gotoAndStop(1);
}
}
Question:
how do I code this so when the user makes their 2 selections, the other radios no longer function unless they are checked off?
thank you!!