|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi
I've been using flash only for some animated buttons yet. Now i wanted the user to be able to choose between some radio buttons (i simply inserted the flash ui control - is that ok, or is there perhaps a better way?!?) and when he clicks on "ok" a variable is set depending on what he has chosen... I siply need to check the value of the radio buttons,... i tried the "getValue()" function like this: if(option1.getValue()==true){ img="00"; } else if(option2.getValue()==true){ img="01"; } else if(option3.getValue()==true){ img="02"; } else if(option4.getValue()==true){ img="03"; } else if(option5.getValue()==true){ img="04"; } else if(option6.getValue()==true){ img="05"; } else if(option7.getValue()==true){ img="06"; } trace(img); I guess this is really stupid, isn't it...? perhaps it's something with the paths? Thats a thing i didn't get... (if anybodey knew a good tutorial i'd be pleased when he would give me the link) Thanks |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Newbie - Getting value of a radio button |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|