1 Reply Latest reply on Jul 7, 2006 4:34 AM by DazFaz

    radio button

    Level 7
      Hi guys,

      I'm using the below code to check the state of the radio button, but it does
      not seems to work, where am I going wrong.

      on(release)
      {
      if (radioGroup.selected =true)
      {
      nextFrame();
      }
      else if(radioGroup.selected =false)
      {
      stop();
      }
      }

      thanks in advance
      regards
      b


        • 1. Re: radio button
          DazFaz Level 1
          on(release)
          {
          if (radioGroup.selected =true)//<------ should be "==" not "=" as you are declaring it to be true here and not asking it "if" its true
          {
          nextFrame();
          }
          else if(radioGroup.selected =false)//<<----- same here
          {
          stop();
          }
          }

          Ive not tried this code but thats something that jumped out for me straight away.

          Cheers