Code:
this.createEmptyMovieClip("mouseCheck",100);
this.mouseCheck.onEnterFrame = function(){
//this bit sets up your frame boundaries [startPointFromLeft,endPoint,FrameToGoTo (can be a number or frame name)]
frames = [[183,366,"one"],[0,182,"two"],[367,550,"three"]];
//gets the x position of the mouse
xPos = _root._xmouse;
//loops round the array of boundaries to see where the mouse is and goes to correct frame
for(i=0;i<frames.length;i++){
if(xPos >= frames[i][0] && xPos <= frames[i][1]){
_root.gotoAndPlay(frames[i][2]);
}
}
}