You can have a structure, a bounding box. All you do is just get the mouseX
or mouseY on movement. If they are out of your bounding box. Then stop
dragging.

So basically :

 function callMeOnMouseMove(e:mouseEvent){
        if(e.mouseX > myBox.rightBound || e.mouseY < myBox.leftBound ||
e.mouseY >myBox.LowerBound || e.mouseY < myBox.UpperBound)
                 stopDragging (raise flag)
}


hope that helps :)

Fahim Akhter
Game Developer | White Rabbit Studios |
http://apps.facebook.com/feline-frenzy/


On Thu, May 27, 2010 at 4:26 PM, Christophe
<[email protected]>wrote:

>
>
> Hello,
>
> I want that a customCursor with a fixed y position value.
>
> But the field mouseX is read only.
>
> How to limit the movements of the custom cursor ?
>
> Thank you,
> Christophe,
>
>  
>

Reply via email to