10 Replies Latest reply on Nov 17, 2008 5:06 AM by David Beedle

    Reference button instance name as variable?

    David Beedle
      I am trying to put a button instance name into a variable, then trying to use the variable to change the instance's _visible property. No success. Here's a snippet of code (buttonClicked is a Number):

      var hideButton = "button" + .buttonClicked.toString() + "_btn";
      hideButton._visible = false;

      Is there something I am missing?