Need a actions script code to allow my a user to lcik on the same button twice and no

Hello, I would liek to say i am sorry about my ? for the cd key. I hope you will forgive me. Well i am makeing a website for no reason and i need help making a action script to make a button gotoAndPlay 1 thing then on the 2nd clikc not gotoAndPaly the saem thing. Please help

Use a flag

on (press){
  if (!flag){
    gotoAndPlay(5);
    flag++;
  } else gotoAndPlay(10);
}

pom :slight_smile: