Hi, this is a REAL basic one for you:
This is my script:
count = 0;
btn_01.onRelease = function() {
if (count<=20 && this._currentframe == 1) {
_root.count += 1;
this.gotoAndStop(2);
trace(count);
} else {
if (this._currentframe == 2) {
_root.count -= 1;
this.gotoAndStop(1);
trace(count);
}
}
};
Instead of applying it to just one button I want to apply it to many on the stage, how do i add the names of the buttons to the function? I tried separating with commas but no luck