Given the fact that "at least one hat is red", and referring to persons 1-X in the order that they are asked "is your hat red":
If person 1 sees all black hats, he must be wearing a red hat (he can only conclude this because he knows that at least one hat is red).
Since person 1 doesn't speak, he must see a mix of red and black hats.
From above, person 2 knows that person 1 saw a mixture of hats.
If person 2 now sees that all remaining (unspoken) hats are black, he knows that his hat must be red.
Since person 2 doesn't speak, he must see a mixture of red and black hats.
From above, person 3 knows that person 2 saw a mixture of hats.
If person 3 now sees that all remaining (unspoken) hats are black, he knows that his hat must be red.
Since person 3 doesn't speak, he must see a mixture of red and black hats.
Continuing the above, each following person can conclude that if they only see black hats remaining, then their hat is the last red hat.
Once that person speaks, all following people know that their hat is black.