Jason Bateman Jason Bateman

Funnyman Jason Bateman says his struggle with drugs and alcohol in the 1990s was "like Risky Business for 10 years."

"I'd worked so hard that by the time I was 20, I wanted to play hard. And I did that really well," Bateman told Details.

Check out photos of Bateman through the years

The 40-year-old former child star (The Hogan Family, Silver Spoons) said his substance abuse nearly destroyed his marriage to actress Amanda Anka. When Anka left for a vacation in Mexico, Bateman started going to Alcoholics Anonymous meetings. 

"Booze was what would make me want to stay out all night and do some blow or smoke a joint or whatever, so shutting that off was key. It's like ketchup and French fries — I don't want one without the other," said the Arrested Development star. "So that's the moment: Do you want to continue being great at being in your twenties, or do you want to step up and graduate into adulthood?"

Watch free full episodes of Arrested Development  

Now a father with a flourishing movie career, Bateman can be seen in the upcoming films The Baster with Jennifer Aniston, The Invention of Lying with Ricky Gervais and Jennifer Garner, Up in the Air with George Clooney and Couples Retreat with Vince Vaughn.