Oh! It works perfect now, I think you edited it while I was posting. Thanks again, I really appreciate all the help.
Printable View
Oh! It works perfect now, I think you edited it while I was posting. Thanks again, I really appreciate all the help.
Your welcome :)
Yes I edited it, cuz I discovered that too.
And something that you should use.
Add that line. I think it looks better without that ugly hand cursor :)Quote:
for (i=1; i<=buttonNum; i++) {
this["button"+i].useHandCursor = false;
this["button"+i].onRollOver = function() {
if (this.clicked != "yes") {
this.gotoAndPlay("over");
}
};
this["button"+i].onRollOut = function() {
if (this.clicked != "yes") {
this.gotoAndPlay("out");
}
};
this["button"+i].onRelease = function() {
this.gotoAndStop("out");
this._parent[_root.clickedButton].gotoAndPlay("out");
this._parent[_root.clickedButton].clicked = false;
this._parent[_root.clickedButton].enabled = true;
_root.clickedButton = this._name;
this.clicked = "yes";
this.enabled = false;
content.gotoAndPlay(this._name);
firstclick = true;
};
}