# Automatically check checkbox

**URL:** <https://forum.kirupa.com/t/automatically-check-checkbox/237825>\
**Category:** Uncategorized\
**Created:** [September 4, 2007, 11:50am UTC](https://forum.kirupa.com/t/automatically-check-checkbox/237825 "2007-09-04T11:50:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![avance](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@avance](https://forum.kirupa.com/u/avance)\
**Post date:** [September 4, 2007, 11:50am UTC](https://forum.kirupa.com/t/automatically-check-checkbox/237825/1 "2007-09-04T11:50:55Z")

</div>

hello,

i want to create some script that will automatically check a checkbox when all other checkboxes are checked (too much use of the word check) :glasses:

here is the code i have but im a newbie to actionscript:

if (checkOne.selected==true && checkTwo.selected==true && checkThree.selected==true && checkFour.selected==true && checkFive.selected==true)  
{  
compiled.selected=true;  
}  
else  
{  
compiled.selected=false;  
}

can anybody help please.

thanks
