old movie about a tomboy girl who falls in love with a guy

I don’t remember too much about it, but this is a scene I remember vividly:

A young tomboy girl, maybe 16 or 17, was hanging around a group of kid boys in a barn or something. They were all causing trouble and irritated some guy, so they all began to run away but the guy caught one of them. He, thinking it was a young boy, picked him up and began to spank him. It ended up being the tomboy girl, who he ends up falling in love with later on in the movie.

Got something to say?