Flash 8. Actionscript 2.0
I made a movieclip with scrolling images that are buttons with links, It loops continuously. All I need is to make it stop/pause when I mouseover it. I tried this.stop and hittest etc but it stops forever and does not move afterwards. Your help would be appreciated. Thank you
Here is the script I made
onClipEvent(load){
scroll = +3;
myClip.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel() {
if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
}
}
onClipEvent(enterFrame){
_x -= scroll;
if (_x > 0) _x=-5051.1;
if (_x < -5051.1) _x=0;
}