1 Reply Latest reply on Feb 20, 2008 10:15 AM by kcell

    Radio Box?

    jefflemon
      I have the following radio box:

      <mx:RadioButtonGroup id="sex"/>
      <mx:RadioButton x="171" y="382" label="Male" groupName="sex"/>
      <mx:RadioButton x="258" y="382" label="Female" groupName="sex"/>

      But how do I refer to it? As in:
      this.sex.RadioButtonGroup

      Also how do i make male the default value?
        • 1. Re: Radio Box?
          kcell Level 2
          Hi Jeff,

          you can set sex.selectedvalue = "Male" to set the selected radiobutton.

          best regards,
          kcell

          <?xml version="1.0" encoding="utf-8"?>
          <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
          <mx:RadioButtonGroup id="sex" selectedValue="Female"/>
          <mx:RadioButton x="171" y="382" label="Male" groupName="sex"/>
          <mx:RadioButton x="258" y="382" label="Female" groupName="sex"/>

          </mx:Application>