Erie County District Attorney John J. Flynn was sworn in as president of the District Attorneys Association of the State of New York during its summer conference in Saratoga Springs on Saturday.