Cursor Boundaries?

i made this custom mask cursor and i used this script

onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (load) {
startDrag ("", true);

}


and it works great but for my masked picture its a picture of a planet, im just testing wit that picture, and the cursor goes off stage at times or into a white part and shows the mask, so how do i add boundaries so that it doesnt go past a certain axis? like a certain number on the x axis and y axis?

{
_x=_root._xmouse;
_y=_root._ymouse;
if(_y>=120){
_y=120;
}
}


thats one i did a while ago that wont let u go past 120 on the y axis, but that same script doesnt work wit the above script, so does anyone know how i would do that? thanx
sig.jpg

Comments

Sign In or Register to comment.