Skip to main content
Participant
January 28, 2008
Question

How do you constrain the draw API within a single movieClip?

  • January 28, 2008
  • 1 reply
  • 177 views
If got a sample code I've been tweaking for the past 24 hours. It works fine but it isn't confine to just the drawing area. If anyone has an idea on how to keep it from drawing outside the movieClip. I'm all ears.
This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
January 28, 2008
use a loop (you must have one now) to check the mouse position. it there's a positive hitTest() with the mouse and your movieclip, allow drawing. otherwise, do not.