I have 10 Buttons
on each Button is this
if (s == _level0.itemX.icon) {
trace(s);
v1.onRollOver = function () {
this.gotoAndPlay(2);
}
v1.onRollOut = function () {
this.gotoAndPlay(7);
}
v1.onRelease = function () {
_root.vote10 = 1;
}
v2.onRollOver = function () {
this.gotoAndPlay(2);
}
v2.onRollOut = function () {
this.gotoAndPlay(7);
}
v2.onRelease = function () {
_root.vote10 = 2;
}
}
the thing which differs is _root.vote (which is from 1-10) and the (s == _level0.item9.icon) which is from 1 to 10 too …
is there a way to make this easier, coz when i have to change sumthing i have stroll through all the buttons and change it …
thanx in advance
ChromeD