Boxes that bounce

Hi, I have 3 copies of this boxMC which are intended to bounce around inside a _root mc.

Each has a different instance name so when I do a

trace(this);

I get:

_level0.box1
_level0.box2
_level0.box3

as each of my 3 boxes tells me what their names are.

I want to do a For statement with this kinda thing in it:

if (this == _level0.box*)

but it doesn’t work, hope someone knows what I mean and can help me out? I’ll attach a .fla (mx2004) to look at. Also, any tips on how to get these boxes bouncing around inside a perimeter?

Cheers
Pete