How to make random motion without objects overlapping during mvt

[FMX]

Hi, I’m trying to create a flash demo for my prof and we want green dots to move randomly across the screen without ever overlapping each other.

I saw the kirupa tutorial on random motion: http://www.kirupa.com/developer/actionscript/random_motion2.htm, which is really good. I’m wondering if I can add something to the code so that the dots won’t overlap, (as soon as one touch another they move away) as they move.

Thanks so much!

Jane