I have the following code which is applied to the movieclip
on(rollOver){
_root.over = true;
_root.off = false;
}
on(rollOut){
_root.over = false;
_root.off = true;
}
onClipEvent(enterFrame){
if ((_root.over)&&(this._currentframe <= 10)){
this.gotoAndStop(this._currentframe + 1);
}
if ((_root.off)&&(this._currentframe >= 1)){
this.gotoAndStop(this._currentframe - 1);
}
}
I am trying to target the instance for the movie clip as when I apply the code it just plays all the movie clips rather than the instances of the buttons. Could you help me edit the code to target the movie clip that I apply the code too.