In the early to mid-1940s Hollywood suffered a number of high-profile drug scandals, including those involving drummer Gene Krupa and actor Robert Mitchum.
Anslinger met with major studio heads, including Louis B. Mayer of Metro-Goldwyn-Mayer, concerning Hollywood actors with drug problems, as well as the appropriate portrayal of the topic of drugs in films. It was during this era that the Motion Picture Production Code banned drug use in movies unrelated to the plot.
Anslinger's active role earned him a small, but apt, part in To the Ends of the Earth. He played himself as the Federal Bureau of Narcotics (FBN) commissioner.