Credit: Thos Robinson/Getty Images for AFM

Three months before his March 10 death at the age of 38, Corey Haim obtained more than 550 prescription pills illegally, California Attorney General Jerry Brown said Tuesday.

The former teen idol got the pills - which included Valium, Xanax, Vicodin and Soma - through seven different doctors, who after speaking with investigators, claim they were duped. He was an alias on at least one occasion, according to the Associated Press.

Last month, it was announced that Haim's death was linked to an "illegal and massive prescription-drug ring" after investigators discovered an "unauthorized" prescription in Haim's name while looking into fake prescription pads.

The L.A. Coroner previously confirmed to that four prescription pill bottles in Haim's name were recovered in the Hollywood apartment where he collapsed. All were prescribed by a doctor treating the actor.

Although police mentioned an overdose as a possible cause of Haim's death, the official determination is pending toxicology tests.