# OOP: balls that bounce off each other?

**URL:** <https://forum.kirupa.com/t/oop-balls-that-bounce-off-each-other/210415>\
**Category:** flash\
**Created:** [December 18, 2006, 5:45pm UTC](https://forum.kirupa.com/t/oop-balls-that-bounce-off-each-other/210415 "2006-12-18T17:45:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidOrtiz](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@DavidOrtiz](https://forum.kirupa.com/u/DavidOrtiz)\
**Post date:** [December 18, 2006, 5:45pm UTC](https://forum.kirupa.com/t/oop-balls-that-bounce-off-each-other/210415/1 "2006-12-18T17:45:22Z")

</div>

I have a simple ball class where it bounces and such and stays on the stage based on boundaries. right now im using a for loop to attachMovie(“ball”,…) in my main fla file

which is basiclaly my movieclip that has the AS 2.0 class pointed to it.  
It bounces fine using the tutorial on Kirupa(by senocular?)

i want these balls to bounce off each other too? any idea on the approach.
