# Bouncing Balls inside of a Movie Clip Circle

**URL:** <https://forum.kirupa.com/t/bouncing-balls-inside-of-a-movie-clip-circle/276892>\
**Category:** flash\
**Created:** [December 4, 2008, 7:10pm UTC](https://forum.kirupa.com/t/bouncing-balls-inside-of-a-movie-clip-circle/276892 "2008-12-04T19:10:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dutchoh1](https://avatars.discourse-cdn.com/v4/letter/d/d26b3c/32.png) [@dutchoh1](https://forum.kirupa.com/u/dutchoh1)\
**Post date:** [December 4, 2008, 7:10pm UTC](https://forum.kirupa.com/t/bouncing-balls-inside-of-a-movie-clip-circle/276892/1 "2008-12-04T19:10:07Z")

</div>

I have been playing with multiple different AS3 bouncing ball tutorials in an effort to have the balls bounce inside of a circle or other shape instead of just the stage.

Does anyone have any ideas of things to try?

I have a pretty good grip on the physics part, I am just trying to figure out how to make the balls stay inside of a certain boundary. Most of the tutes I have seen discuss top, bottom, left, and right…They do not touch on shapes that are not perfectly square.

Any ideas or direction would be greatly appreciated!  
Thanks Brian
