# Cursor keeps disappearing?

**URL:** https://forum.kirupa.com/t/cursor-keeps-disappearing/219068
**Category:** Uncategorized
**Created:** [March 13, 2007, 4:54pm UTC](https://forum.kirupa.com/t/cursor-keeps-disappearing/219068 "2007-03-13T16:54:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![illustratorDavi](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/illustratordavi/32/3426_2.png) [@illustratorDavi](https://forum.kirupa.com/u/illustratorDavi)
#### Post date: [March 13, 2007, 4:54pm UTC](https://forum.kirupa.com/t/cursor-keeps-disappearing/219068/1 "2007-03-13T16:54:46Z")

</div>

Hi

I’m customising a tutorial from “Flash 3d” book. Basically its a horizontal/panorama scroller but I don’t want to have a custom cursor like they suggest so I have deleted all the bits of actionscript relevant to the cursor.

But for some reason when I test the movie the cursor keeps disappearing at randomly on and off when scrolling.

Please, can anyone see anything in the code that could make the cursor disappear ? I’ve checked there isn’t any more actionscript in the hidden elsewhere in the file.

Thanks  
David

> // initialize variables  
> var moveAmount:Number = 15; // how fast the pano will move  
> var centerX:Number = Stage.width/2; // horiz. center of Stage  
> var xmax:Number = pano\_mc.\_width/2; // max position of pano  
> var xmin:Number = Stage.width - xmax; // min position of pano

// define the panorama actions  
pano\_mc.onRollOver = function() {Mouse.hide(); }  
pano\_mc.onRollOut = function() {Mouse.show(); }

pano\_mc.onEnterFrame = function()  
{  
checkTheMouse();   
}

checkTheMouse = function()  
{   
if (\_xmouse \< centerX-70) { panLeft() }  
else if (\_xmouse \> centerX+70 ) { panRight() }  
else dontPan();   
}

panLeft = function()  
{  
pano\_mc.\_x += moveAmount;  
if (pano\_mc.\_x \> xmax) { pano\_mc.\_x -= pano\_mc.\_width/2 }  
}

panRight = function()  
{   
pano\_mc.\_x -= moveAmount;  
if (pano\_mc.\_x \< xmin) { pano\_mc.\_x += pano\_mc.\_width/2 }  
}

dontPan = function()  
{  
}
