I have a movie clip that I want to act as a button. All the states (on, over, etc) all work properly with the following code in the main timeline:
this.portfolio_button.onRollOver = function () {
portfolio_button.gotoAndPlay("_over");
}
this.portfolio_button.onRollOut = function () {
portfolio_button.gotoAndPlay("_out");
}
The problem is that I cannot get this ‘movie clip button’ to goto and play a frame…
This is the code I’m using for that:
on (release) {
gotoAndPlay(“Label”);
}
I’ve even tried to place a button inside the movie clip button and placed this code on it:
on (release) {
_root.gotoAndStop(“Label”);
}
Can somebody please let me know what I’m doing wrong?
Thanks in advance.