# Change mouse cursor over scrollpane?

**URL:** <https://forum.kirupa.com/t/change-mouse-cursor-over-scrollpane/155500>\
**Category:** Uncategorized\
**Created:** [July 18, 2005, 12:29pm UTC](https://forum.kirupa.com/t/change-mouse-cursor-over-scrollpane/155500 "2005-07-18T12:29:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Navarone](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Navarone](https://forum.kirupa.com/u/Navarone)\
**Post date:** [July 18, 2005, 12:29pm UTC](https://forum.kirupa.com/t/change-mouse-cursor-over-scrollpane/155500/1 "2005-07-18T12:29:26Z")

</div>

I am using the following code to switch cursors when I mouse over my scrollpane but doing so I loose control over the scrollbars, is there a way to detect if you are over the scrollbars and then turn the cursor back to it’s rginal shape or continue using the scroll bars somehow? :}

```auto

this.zoom_in.onPress = function() { 
	 var zoomin = false; 
	 pictures.onRollOver = function() { 
		 zoomin = true; 
		 Mouse.hide(); 
		 this.attachMovie("mag_in", "cursor_mc", this.getNextHighestDepth(), {_x:this._xmouse, _y:this._ymouse}); 
	 }; 
	 pictures.onMouseMove = function() { 
		 this.cursor_mc._x = this._xmouse; 
		 this.cursor_mc._y = this._ymouse; 
	 }; 
	 pictures.onRollOut = function() { 
		 zoomin = false; 
		 Mouse.show(); 
		 this.cursor_mc.removeMovieClip(); 
	 }; 
	 pictures.onMouseDown = function() { 
		 if (zoomin=true) { 
			 if (pictures.content.myLoader.scaleX>=1600) { 
					this.zoom_in.enabled(false); 
					bgSound.start(); 
			 } else { 
					pictures.content.myLoader.scaleX *= 1.5; 
					pictures.content.myLoader.scaleY *= 1.5; 
					trace(Math.floor(pictures.content.myLoader.scaleX)); 
			 } 
			 pictures.invalidate(); 
		 } 
	 }; 
}; 
 

```
