Ben Affleck and Jennifer Garner are playing "happy families for their children".

Ben Affleck and Jennifer Garner

Ben Affleck and Jennifer Garner

The 43-year-old actress and the 42-year-old actor recently confirmed their split after 10 years of marriage but are trying to keep things amicable for the sake of daughters, Violet, nine and Seraphina, six, and three-year-old son Samuel.

A source told UsWeekly: "They both put on their happy faces and don't show any signs of anger or frustration. They definitely play happy family in front of the kids."

The insider added that it is important to both stars that their children know how much they love them.

The source explained: "They want to fill their children's lives with as much love as possible and make sure they know they have two parents who love them to pieces."

Jennifer, who is currently shooting the upcoming film 'Miracles from Heaven' in Atlanta, is said to have made the devastating decision to pull the plug on their marriage because she "didn't want to spend another year of her life being miserable".

Jennifer was said to be fed up of Ben's passion for gambling, but the brunette beauty is now "doing great".

The insider said: "[She] is doing great. The kids are with her, which is all she wants. She's as strong as ever."

Oscar winner Ben has been flying back and forth to help take care of their children while his estranged wife is on set.