MX 2004 help - arrays and loops

Hi,

I’ve written a bit of code that will allow users to move objects around the stage and detect if one has hit another. The problem is that it only works for a limited number of objects. Can someone show me how to rewrite the code so that it works with an unlimited number of objects?

I’ve included the fla for you.

Thanks,
Greg