Because many of the songs had originally been written during the time when silent films were giving way to "talkies", and musicals were popular with audiences, Comden and Green came up with the idea that the story should be set during that transitional period in Hollywood, an era they were intimately familiar with. When Howard Keel was mentioned as the possible lead, they tried to work up a story involving a star of Western films who makes a comeback as a singing cowboy, but they kept gravitating to a story about a swashbuckling romantic hero with a vaudeville background who survives the transition by falling back on his abilities as a song-and-dance man, a story which Gene Kelly was well-suited for.