Craig A. Smith , a professor at the Santa Barbara College of Law and a former prosecutor in the Santa Barbara County district attorney 's office , said that the defense had presented an effective case but that the California child molesting law gave the prosecution an advantage . ''