Neil Flynn, who stars on the ABC sitcom "The Middle," was in town earlier this week, filming a small role for an indie feature based out of Elgin.

"The Resurrection of Gavin Stone" is the story of a former child star "stuck in his hometown doing community service (who) needs a place to stay," director Dallas Jenkins told me, "so he reconnects with his previously estranged father," played by Flynn. (Click here for a photo of Flynn and Jenkins on set.)

The movie is being produced by Vertical Church Films, which is part of the Harvest Bible Chapel in Elgin, where Jenkins (whose credits include the 2006 drama "Midnight Clear," starring Stephen Baldwin) serves as media director.

"Neil was in town for a few days shooting some scenes," said Jenkins. "He was great, total pro and a true Chicagoan."

Flynn (who is also known for "Scrubs") is a South Side native who pursued dramatic roles in theater early in his career before shifting to comedy when he began taking classes at iO Theater, where he worked with improv guru Del Close.

Earlier this year, Jenkins told the Tribune that the title role in "The Resurrection of Gavin Stone" would be played by Brett Dalton, who currently plays Agent Grant Ward on ABC's "Agents of S.H.I.E.L.D."