Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / General Flash Topics / July 2008



Tip: Looking for answers? Try searching our database.

Getting the value of a radio button group

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gandalf458 - 08 Jul 2008 17:15 GMT
I'm using Flash 8 and I've used the radio button component. I have 4 instances
of a radio button. The radio group is named radioQ1 and the instance names are
q1a q1b q1c and q1d. I cannot find out how to find out which option has been
selected when the continue button (btnQ1) is pressed.

I have

btnQ1.onPress = function() {
}

but I'm not sure what to put inside to find the value of my radio group.

Thanks for helping...
clbeech - 08 Jul 2008 21:01 GMT
you should be able to use something like:

btnQ1.onPress = function() {
var choice = radioQ1.selection;
trace(choice);
}
gandalf458 - 09 Jul 2008 07:14 GMT
Thanks, I tried that but I just get "undefined". I guess I'm missing something rather obvious...
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.