I think the movie may be " She wore a yellow ribbon" but I am not sure. I seem to remember someone singing this song in the movie but I'm almost sure it was not Errol Flynn, it was another actor singing it and when Flynn Custer) heard it he adopted it for use by the 7th cavalry.