Errol Flynn is top-billed in Kim, but the title character is played by Dean Stockwell. The son of an Irish sergeant, young Kim wanders through the streets and hills of Colonial India, disguised as a native boy. Kim's adventures include an episode with a horse trader (Errol Flynn) who is actually a British secret agent; a sojourn with a holy lama (Paul Lukas) on a mysterious quest; and involvement with a plan to rid the Khyber Pass of Czarist Russian agitators. Kim had been in the planning stages since 1938 (those considered for the title role included Freddie Bartholomew and Mickey Rooney), but the property's catch-as-catch-can storyline, coupled with the changing political climate in postwar India, delayed production until 1949. While a great deal of Kim was filmed on location in India, some of the more complicated exterior sequences were lensed in Lone Pine, California.