Adobe Director Online
 
The movie creates 10 spheres at random locations. A main Sphere uses raycastclosest () method to find the closest sphere to it. Linear Velocity is assigned to the main sphere in the direction of the closest ball. It collides with the closest sphere and the closest sphere is deleted. This is repeated until all the spheres except the main sphere is deleted.

You can download the source here.
 
 
spacer image
This is not an official site from Adobe. If you need any clarifications, please mail me at info@adobedirectoronline.com