6 Replies Latest reply on Aug 11, 2007 9:43 PM by k-doggie

    how can i test the boolean state of button action?

    k-doggie
      Hello,
      in as2.0, how can i test the boolean value if a button was pressed or not?

      I have a simple function im trying to work with like this...

      button_btn.onRelease = function (success:Boolean) {
      if (success) {
      trace("we pressed the button - value is true");
      }
      else {
      trace("value is false");
      }
      };

      working with booleans in this way is new to me - any pointers will do - thanks!