NEW YORK —The bong-tossing case against Amanda Bynes was dismissed Monday after the actress complied with the judge’s orders to stay out of trouble and go to counseling.

Bynes, 28, was charged last year with reckless endangerment and marijuana possession. Building managers called police because they said she was smoking pot in the lobby of her Manhattan residence. When officers entered her 36th-floor apartment, they said they saw her heave a bong out the window.

The court previously had said the charges would be dismissed if Bynes stayed out of trouble and went to counseling twice a week.