i’m using flash mx.
i’ve got a mask following the mouse and was wondering how i could restrict the code so the mask would only follow the mouse when it was in a certain portion of the scene.
basically i’ve got it following the mouse for a menu navigation and want to know how to not have the mask following the mouse when it moves outside of that menu area.
Ok im going to assume you intend to follow only along the x-axis since thats what your code is doing. I am also assuming you just want to limit the mask and not the mouse pointer itself (if so just remove the _x > XMAX and _x < XMIN part).
didn’t work for me. i’m posting my fla if anyone wants to look at and see what i’m doing wrong. when looking at it keep in mind i don’t want the mask to move when below the menu title bar.
here is the working version… i commented it so i hope it helps you… since you said you are new to AS i explained how and why i did what i did to the code (the one line i added heh) and the line is in the easing code for the mask
the file was too big to upload here so i put it on a site…