# Setting variables with checkbox

**URL:** <https://forum.kirupa.com/t/setting-variables-with-checkbox/301965>\
**Category:** Uncategorized\
**Created:** [December 18, 2009, 12:36pm UTC](https://forum.kirupa.com/t/setting-variables-with-checkbox/301965 "2009-12-18T12:36:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![crazyb\_ro](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@crazyb\_ro](https://forum.kirupa.com/u/crazyb_ro)\
**Post date:** [December 18, 2009, 12:36pm UTC](https://forum.kirupa.com/t/setting-variables-with-checkbox/301965/1 "2009-12-18T12:36:26Z")

</div>

i have this idea: i have a couple of movieclip(or grafic) symbols in the movie’s library. let’s say 30. they are nothing less than colors of different shades/tints. firstly i need to randomize the loading of one of those movieclips when i push a button and secondly i want to control that randomization with a couple of check boxes. let’s say i have a first row of checkboxes which control the particular color that is going to be loaded(red,green,yellow,blue) and a second row that controls the shade(extremely dark,very dark,dark,light dark,neutral,light bright,bright,very bright,extremely bright). for instance if i choose yellow and green from the first row of check boxes and neutral and light from the second row i want the movie to load randomly yellow and green movieclips with those particular shades(neutral and light).

is this script hard to write? i have some knowledge in actionscript 2 but i am not that advanced.
