# Need the radio button value AS3 for SharedObject

**URL:** <https://forum.kirupa.com/t/need-the-radio-button-value-as3-for-sharedobject/268948>\
**Category:** flash\
**Created:** [August 20, 2008, 7:14pm UTC](https://forum.kirupa.com/t/need-the-radio-button-value-as3-for-sharedobject/268948 "2008-08-20T19:14:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adove](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@adove](https://forum.kirupa.com/u/adove)\
**Post date:** [August 20, 2008, 7:14pm UTC](https://forum.kirupa.com/t/need-the-radio-button-value-as3-for-sharedobject/268948/1 "2008-08-20T19:14:35Z")

</div>

I am under a tight deadline. Friday Aug.22!!! I am trying to store the value of a radio button (in a group for yes/no) when a 'Next" button is pressed. I have a nextBtn.addEventListener(…) to contain a function which holds code to store the value of each radio button on the page into its own SharedObject. As such:  
\_so.data.DrugName1 = DrugName1.selected;

I do not know the AS3.0 code to get the value of the selected radio button in a grouping and then to use that value and store it into the SharedObject \_so.data I have been banging my head for days. I fear I keep trying to use AS2 code for an AS3 project. AAAAAhhhhhhhh!

Can someone please help me determine the value or data of a radio button or radio button group. Is it “selected” or “selectedData” or “getValue()” or “value” or “data” or what ??? I don’t know where else to turn. ☹  
alexdove at [comcast.net](http://comcast.net)

Please email direct if you can help. I’ll be sure to re-post a solution once I get it.  
Thank you in advance.  
Alex Dove
