# Unchecking radiobutton if another is selected

**URL:** <https://forum.kirupa.com/t/unchecking-radiobutton-if-another-is-selected/46571>\
**Category:** Uncategorized\
**Created:** [March 25, 2004, 7:48pm UTC](https://forum.kirupa.com/t/unchecking-radiobutton-if-another-is-selected/46571 "2004-03-25T19:48:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![karmakat](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/karmakat/32/476_2.png) [@karmakat](https://forum.kirupa.com/u/karmakat)\
**Post date:** [March 25, 2004, 7:48pm UTC](https://forum.kirupa.com/t/unchecking-radiobutton-if-another-is-selected/46571/1 "2004-03-25T19:48:13Z")

</div>

hi…

I am using the FFP Lightweight components set tickbox (this component is available at [flashcomponents.net](http://flashcomponents.net))

for YES and NO questions…

I want to put script in each tickbox to uncheck the other box next it if it gets chosen (so a user can’t select yes and no)

I also want to add or subtract a value from a variable…

heres a sample of what i put on each tickbox instance… the syntax is definitely wrong:

on(release){

value = n14.getValue()

if value = (true)  
(n14.setValue(false))  
yellow -1;

else if value = (false)  
(y14.setValue(true))  
green++;  
}

SOrry for my crappy actionscript… thats why i need help!!

also i need help with a script calculating the top three of the variables of color after the quiz is completed…

-aleks
