I just used the mouse out/up combo to stop the drawing. The drawing area I
used was a canvas object in flex (for liquid resizing). Using flex, the
drawing was constrained to only draw in the canvas'd bounds which made it a
non-issue to control bounds. But still, mouse out event will fire when you
leave your target drawing object.

B.

On Fri, Nov 13, 2009 at 2:46 PM, ktt <[email protected]> wrote:

> Hello,
>
> I'm writing a small drawing program and wonder what is the best method to
> limit mouse dragging area?
>
> 1. if (mouseX < 100) {...}
> 2.Event.MOUSE_LEAVE
> or any other?
>
> Could you advice?
>
> Thank you in advance,
> Ktt
>
>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to