12 Replies Latest reply on Oct 11, 2007 9:18 AM by kglad

    how to use "set"

      I have a survey, where every time you click a button, a correct answer will give one point to a variable "q21a" by the actionscript:

      _level0:q21a=1

      BUT in some occasions I need to have two answers to give one point to the variable q21a. I do that by making two variables q100a and q101a. I then make this actionscript:

      totalX =q100a + q101a;
      if (totalX=2) {
      set (_level0:q21a,1);

      But the last: set (_level0:q21a,1); is obviously wrong,

      so how do I set the variable q21a to1 , if the condition totalX =2