onClipEvent mouseOver Alternative?

Hello,

I have a scroller, which works well, except I wish to remove the scroller and track, and just use the left and right buttons. This is also goes to plan, except I wish the left/right buttons to operate as soon as the mouse glides over them. The script is written using the onClipEvent function, and does not allow the mouseOver option. By looking at the code below, does anyone know if there is a way around this? I’d love to know if it’s possible!

Any help would be wonderful! :slight_smile:

onClipEvent (load) {
	mouseOver = false;
	_root.content_width = content._width;
	_root.scroller_area_width = scroll_area._width;
	scroller._width = _root.scroller_area_width/(content._width/scroll_area._width);
	_root.scroller_width = scroller._width;
	_root.maxXMove = _root.scroller_area_width - _root.scroller_width;
	
	function updateScrollbar () {
	content._x = - scroller._x * ((content._width - mask._width) / _root.maxXMove);
	}
}

onClipEvent (mouseDown) {
	if (right.hitTest(_root._xmouse,_root._ymouse)){
		right.gotoAndStop(2);
		direction = -1;
		scrolling = true;
		_root.right_controller.gotoAndPlay(2);
		
	}
	if (left.hitTest(_root._xmouse,_root._ymouse)){
		left.gotoAndStop(2);
		direction = 1;
		scrolling = true;
		_root.left_controller.gotoAndPlay(2);
	}
}

onClipEvent (mouseUp) {
	stopDrag();
	scrolling = false;
	right.gotoAndStop(1);
	left.gotoAndStop(1);
	_parent.left_controller.gotoAndStop(1);
	_parent.right_controller.gotoAndStop(1);
}

onClipEvent(enterFrame){
	if (scrolling){
		updateScrollbar();
	}
}