The Flash’ star Ezra Miller seeking treatment for mental health.

He was charged this month with felony burglary in Vermont, and earlier this year was charged with disorderly conduct following two arrests in Hawaii.

Miller says: “Having recently gone through a time of intense crisis, I now understand that I am suffering complex mental health issues and have begun ongoing treatment,”

“I want to apologize to everyone that I have alarmed and upset with my past behavior. "

 "I am committed to doing the necessary work to get back to a healthy, safe and productive stage in my life,” Miller said.

Miller shot to early success with lead roles in acclaimed dramas “Afterschool,” “We Need to Talk About Kevin” and “The Perks of Being a Wallflower.”

In the coming months, fans can expect Miller’s team to communicate their mental health progress both to the studio and publicly.

The 29-year-old, who has already appeared as the key DC Comics character in several blockbuster films, including Justice League.