Hello - I think this is easy, but haven’t hit the right solution. Searched forum to no avail.
I have an array of buttons. When an array item is clicked, it executes several lines of code. I want to also amend the item’s instance name so a different set of code can be applied to buttons already clicked.
I’ve tried this and similar and don’t have it right yet:
navButton*.onRelease = function() {
this.enabled = false;
this._name = (this._name + "b"); //add "b" to instance name of this
pastBtn.enabled = true;
pastBtn._alpha = 100;
pastBtn.bSelected = false;
pastBtn = this;
}
Thanks for the help.