AS3: Make sure children stays inside parent movieclip's shape

Posted by fortysixandtwo on Stack Overflow See other posts from Stack Overflow or by fortysixandtwo
Published on 2010-03-17T21:02:12Z Indexed on 2010/03/18 3:11 UTC
Read the original article Hit count: 324

Filed under:
|

Red: Shape inside parent movieclip,
Yellow: Children inside parent movieclip

Image

I'd like to animate the yellow dots, but make sure that they never gets out of the red shape's boundary. How can I approach this problem?

© Stack Overflow or respective owner

Related posts about flash

Related posts about actionscript-3