Movie clip to move with mouse direction

Hi
I am new to this forum, wish to seek some advices how to create a movable screen when mouse is pointing at left or right of the screen.

I am working on a feature, that when my mouse is near to the left, the movie clip will drag toward the left until the end of the scroll.

Thanks in advance

you cant actually move the stage but you can move a movieclip.
u can do something like this


// u can use setInterval too... I am used to this

onEnterFrame = function  () {
	
	if(_root._xmouse >400){ // change 400 to the number u want (max)
		my_mc._x -=10;
	}else	if(_root._xmouse <100){ // change 100 to the number u want (min)
		my_mc._x +=10;
	}
}

theres a tutorial on the main page simlar to what you are looking for

also the top link my sig has a tut on this kind of thing