Help with radiobuttons

How can I put two radio buttons in my game?
and then express them, like:
if radiobutton1 = Clicked then
set variable a = 1
something like this if then statement
thanks

Does anyone know?


radioBtn1.onRelease=function(){
a=1
}
radioBtn2.onRelease=function(){
a=2
}

and so on =)