0 Replies Latest reply on May 21, 2006 8:11 AM by MikeMedia2

    A logic question

    MikeMedia2
      When I choose the correct radioButton (data value 4.76) in all three (3) radioGroups, the return is as it should be, 14.28.

      However, if I choose an incorrect radioButton (data value 0) no subsequent correctly chosen radioButton (data value 4.76) is recognized.

      The total data value thus remains the same as it was before I chose the incorrect radioButton (data value 0)

      // if (x)4.76 = (y)4.76 then (z)0 = [z(0) + (y)4.76]
      // The problem is down here somewhere...

      tScore = 0;
      if(q1.selectedRadio.data == q1Btn.data){
      tScore = tScore + q1Btn.data;
      if(q2.selectedRadio.data == q2Btn.data){
      tScore = tScore + q2Btn.data;
      if(q3.selectedRadio.data == q3Btn.data){
      tScore = tScore + q3Btn.data;
      }
      }
      }
      trace(tScore)

      }