Ok, so I have a movieclip on my stage which has buttons in it.
The movie clip is animated and I wanted it to play the animation when you rollover it and play it backwards when you roll off…
Since there are buttons in the movie clip I used
stop();
myInterval = function () {
menu_mc.page_btn.onRelease = function() {
clearInterval(IntervalName);
_root.gotoAndStop(5);
};
};
IntervalName = setInterval(myInterval, 1);
myinterval();
on the main timeline which works until I add
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}
to the first frame of the movie clip
so if the roll over/out as isnt there it works, but if it isnt there it doesnt work.
So how do I make the buttons work inside of the movie clip if the movie clip has that as?