I have a tab with a rollover effect. The top button calls the tab (called panel) to rolllout which contains another button. I want the original top button to be disabled until the panel has finished playing “out” when the user rolls out of the panel.
Here’s my failing code!
var startTracking = function() {
panel.onEnterFrame = function() {
if(!hitTest(_xmouse,_ymouse,true)) {
delete this.onEnterFrame;
this.gotoAndPlay(“out”);
}
}
}
topBtn.onRollOver = function() {
panel.gotoAndPlay(2);
startTracking();
}
**if (this.panel = (1))
topBtn.enable = true;
**
i think the code needs to say “if panel has not finished playing ‘out’, disable topBtn”
If you can point out my mistake it would be greatly appreciated.
Thank you