Do NOT leave the state.  Do NOT miss the court date.  a bench warrant can be issued for your arrest. It is my understanding that the law is defined as "willfully exposing your genitals to someone else, motivated by a desire to sexually gratify yourself or offend the other person." The facts will let an attorney know if there is a legal defense and thee are legal defenses.  Get a lawyer.