Hide objects using another object

I would like to know if I can achieve the effect in the video using another object. For example, can I use a transparent cube, move it along a path and hide the smaller visible cube?

If there are alternate methods, I prefer one that doesn’t need any compositing.

The method I used in the video uses an animated texture to change the material transparent as the video progresses. It doesn’t require any render layers or compositing.

Look at the boolean modifier, and you might find your answer.
http://wiki.blender.org/index.php/Doc:2.6/Manual/Modifiers/Generate/Booleans

Wow. I’m an idiot. Thanks for the help. Not sure why this wasn’t obvoius to me at first.

It is worth noting that in my example, the box appears hollow. In order to achieve the same effect with a boolean modifier, a transparent material must be UV mapped to the invisible object. Otherwise the obect will always appear solid.