File-This Oct. 10, 2012, file photo shows director and actor Ben Affleck posing for photographers at the premiere of his film Argo in Washington. Affleck might be Batman to his four-year-old son Samuel, but that doesn’t mean that he’ll get to see his dad in action in “Batman v Superman: Dawn of Justice” with the rest of the world when it hits theaters next week. “Four years old is a little young to see this whole movie,” Affleck said Friday from the Warner Bros. studio lot in Burbank. “I don’t want him to have nightmares.”(AP Photo/Cliff Owen,File)

Ben Affleck says he has recently completed treatment for alcohol addiction.

The actor and director said in a Facebook post Tuesday that it’s the first of many steps toward a positive recovery.

He added that he wants to be the best father he can and show his kids there’s no shame in getting help. He also thanked Jennifer Garner for supporting him and caring for their three kids.

Garner and Affleck have been separated since announcing their plans to divorce in 2015.

Affleck previously entered rehab for alcohol addiction in 2001.

Recently, he has stepped away from directing “The Batman” after almost a year in the job. He’ll still star in the film as the titular crusader.