Schrodinger's equation for an electron in a vector potential A has a one-to-one correspondence with the wave equation for an electric field in a moving medium. First we point out a few errors in the literature concerning the Aharonov-Bohm (AB) effect then we explore the optical analogy further. We find that curl A plays a similar role to curl v where v is the velocity of the moving medium.