Ooblecks is what we call a Non Newtonian Fluid... meaning that it does not follow the laws of Netonian Physics.  When left to rest it looks just like a regular liquid.  However when disturbed by strong hitting, shaking or pulling it acts more like a solid.  It is a phenomenon worth 
studying and although still a bit of an enigma, 
scientists think that the material normally acts as a liquid but can produce a sudden, local reaction to rapid impact and stress, reinforcing the area and briefly solidifying the suspension.