I have a MC called soundtab_mc, this soundtab_mc has MC buttons inside of it. soundtab_mc I want to be on side of movie and onRollOver have it slide in and then display buttons to control sounds. Here is my AS I am using the onRollOver and Rolloff works however it does not stop when mouse is still over soundtab_mc so it slides in but slides right back out and doesnt stop on desired frame.
var startTracking = function() {
soundtab_mc.onEnterFrame = function() {
if(!hitTest(_xmouse,_ymouse,true)) {
delete this.onEnterFrame;
this.gotoAndPlay(15);
}
}
}
soundtab_mc.onRollOver = function() {
soundtab_mc.gotoAndPlay(2);
startTracking();
}
It should stop on line 14 however it doesnt it plays through without reading AS within the MC. Any ideas? Thanks in advance. M<T