MIDTOWN — Troubled starlet Amanda Bynes was arrested at a Midtown high-rise Thursday evening after she was caught smoking pot in the building's lobby and chucked a bong out her 36th-floor apartment window, cops said.

Police were summoned to The Biltmore, a luxury apartment building on West 47th Street, after a building employee caught Bynes smoking marijuana in the lobby about 7 p.m., an NYPD spokesman said.

Bynes, a onetime child actress who has recently made headlines for her increasingly bizarre behavior, had returned to her apartment upstairs by the time officers arrived, the spokesman said.

She let the officers in, but once inside they saw a bong in plain view. After picking up on their reaction, Bynes panicked, snatched it up and chucked it out a window, the spokesman said.

No one was injured by the bong, but Bynes was immediately taken into custody, the spokesman said.

The starlet was charged with reckless endangerment, attempted tampering of physical evidence and unlawful possession of marijuana in Manhattan Criminal Court on Friday afternoon.

The disheveled Bynes, who appeared disoriented, wore a stringy blonde wig and gray sweatpants, with the middle fingernail on her left hand painted bright pink.

Before her appearance, the actress begged reporters not to take any pictures of her in court.

"I don't want any photos," she announced. "No press are allowed in here."

Prosecutor Chikaelo Ibeabuchi told the judge that Bynes told cops the supposed bong was "just a vase" before tossing it out the window.

"The defendant was observing rolling a marijuana cigarette and throwing a bong out of the 36th-floor window...where there were people below," Ibeabuchi said.

Bynes' lawyer, Andrew Friedman, claimed that a bong was never recovered by police and that cops followed her illegally into her apartment.

"She has filed a complaint with Internal Affairs for inappropriate action by the Police Department," he said.

The judge, Neil Ross, released Bynes without bail, but he gave her a stern warning that if she got in any more trouble or missed a court date, she'd pay the price.

"I do want to make sure you understand if you get arrested again and you appear before me, I'm going to be setting very, very significant bail. Is that understood?," the judge asked Bynes.

DNAinfo is New York's leading neighborhood news source. We deliver up-to-the-minute reports on entertainment, education, politics, crime, sports, and dining. Our award-winning journalists find the stories - big or small - that matter most to New Yorkers.