# Need help with checkboxes!

**URL:** https://forum.kirupa.com/t/need-help-with-checkboxes/150544
**Category:** Uncategorized
**Created:** [June 8, 2005, 10:21am UTC](https://forum.kirupa.com/t/need-help-with-checkboxes/150544 "2005-06-08T10:21:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jeanius](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@jeanius](https://forum.kirupa.com/u/jeanius)
#### Post date: [June 8, 2005, 10:21am UTC](https://forum.kirupa.com/t/need-help-with-checkboxes/150544/1 "2005-06-08T10:21:03Z")

</div>

I’m making a game for a client in flash - a box opens for ten seconds then closes again. the player now has to mark what he saw inside using the chckboxes next to a list of objects

there are 12 objects in the box and 18 objects in the list to choose from.  
I need to check

1. which objects have been marked
2. if 8 out of 12 are correct
3. if at least eight are marked (or else error: “please mark eight objects”)
4. if a wrong one has been marked

the checkbockes are named cb01, cb02… cb18 and I was checking for marks like this:

if(cb01.selected == true) {  
marks = (marks+1);  
}

if(cb02.selected == true) {  
wrong = (wrong+1);  
}

I know theres a way to check them all at once, but I can’t figure that out…

can anyone give me a simple example on how to solve this or recomend a tutorial?

thanx!
