I Am Hot Then Cold A Liquid Then Solid Riddle

Riddle: I am hot then cold, a liquid then solid, and I am at once flaky and wet. What am I?

Answer: Wax