5 Replies Latest reply on May 27, 2008 7:42 PM by flashlearning11

    button: saving value into a global variable

    flashlearning11
      if I attach the more or less the following code to a button:

      on(release)
      {_global.myvariable = _global.myvariable + 3;
      gotoAndPlay(x);
      }

      Why doesn't it save the value 3 into the global variable? Isn't it supposed to do so? How can I accomplish it.