LOS ANGELES (AP) -- Sean Penn pleaded no contest to vandalism on Wednesday, effectively ending a case in which the Oscar-winning actor was videotaped kicking a celebrity photographer.

Penn was not present in court and entered the plea through his attorney. He was sentenced to three years of informal probation and ordered to perform 300 hours of community service, said city attorney's spokesman Frank Mateljan.

"Prolonging this matter in the court system would not have been in Mr. Penn's best interests and would have distracted from his charitable commitments, specifically his work in Haiti," Penn's attorney Richard Hirsch said. "Accordingly he has decided to accept the terms and move on."

If he completes the terms of his sentence, Penn will be allowed to reduce the charge to disturbing the peace.