Glitching out!

[COLOR=black][FONT=Arial]Hey all,[/FONT][/COLOR]

[COLOR=black][FONT=Arial]I have some flash embedded in a webpage. I have a custom cursor. I’m using an “onClipEvent (enterFrame)” kind of script to determine if the mouse is over the movie that I want the cursor to change over. (it works) [/FONT][/COLOR]
[COLOR=black][FONT=Arial]Now, while this custom cursor is visible, and I roll out of the flash movie the cursor is all glitches out when outside the flash movie. It’s flickering and when I stop moving the mouse it disappears altogether. Obviously this is totally unacceptable. I haven’t the foggiest on what to do to fix it. If I slowly move the mouse out it leaves the boundaries of the target movie clip and returns to “normal” but if I zip my mouse out, the custom cursor if left over the movie and the glitchy mouse is spasming while over the non-flash page. [/FONT][/COLOR]
[COLOR=black][FONT=Arial]What can I do to fix this?[/FONT][/COLOR]
[FONT=Arial][/FONT]
[FONT=Arial]-hroth[/FONT]

[FONT=Arial]here is the culprit script:[/FONT]

[COLOR=black][FONT=Arial][/FONT][/COLOR]

onClipEvent (mouseDown) {
 // Set when left mouse button is pressed
 down = 1;
}
onClipEvent (mouseUp) {
 // Set when left mouse button is released
 down = 0;
 cursor = target["cursor"];
 if (cursor != undefined) {
  if (_root.toggle_tool == "zoom") {
   tellTarget("_root") {
    gotoAndPlay("two");
   }
   Mouse.show();
  }
 }
}
onClipEvent (enterFrame) {
 // Gets the name of the movie under the mouse
 target = eval(getProperty("", _droptarget));
 // Is there a movie under the mouse?
 cursor = target["cursor"];
 if (cursor == undefined) {
  // If not, show the default mouse cursor
  Mouse.show();
  this.gotoAndStop("default");
 } else {
  // If there is, hide the mouse cursor and show appropriate cursor frame
  Mouse.hide();
  if (down == false) {
   // If the left mouse button is NOT pressed
   this.gotoAndStop(cursor);
  } else {
   // If the left mouse button is pressed
   this.gotoAndStop(cursor add "_down");
  }
 }
}
onClipEvent (mouseMove) {
 updateAfterEvent();
}