“As Time Goes By” is a song written by Herman Hupfeld in 1931. It became most famous in 1942 when it was sung by the character Sam (Dooley Wilson) in the movie Casablanca. The song was voted No. 2 on the AFI’s 100 Years…100 Songs special, commemorating the best songs in film. It was used as a fanfare for Warner Bros.