Ben Affleck plans to work with ex-wife Jennifer Garner on a new film after their recent closeness.