Also, does anyone know how to do the following?

"Re-paint the cannon to red when the shot is in the air. Then paint the cannon blue when the shot is gone."

Thanks!