Rectangle Hit Test

I have a basic problem, I’m hit testing two rectangles. There is a static rectangle and one that moves, basically the moving rectangle can come in from any direction and hit the static one. I find that the moving box will actually get stuck to the static one, is there a way to push the moving box out once it hits the static box so that it is not technically hit testing anymore, I know there was a way to do this with circles, but I wasn’t sure about rectangles. Please take a look at the temp .swf i created

http://ec2-72-44-50-95.z-1.compute-1.amazonaws.com/test.swf