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

**URL:** <https://forum.kirupa.com/t/need-a-actions-script-code-to-allow-my-a-user-to-lcik-on-the-same-button-twice-and-no/9928>\
**Category:** flash\
**Created:** [December 20, 2002, 11:27pm UTC](https://forum.kirupa.com/t/need-a-actions-script-code-to-allow-my-a-user-to-lcik-on-the-same-button-twice-and-no/9928 "2002-12-20T23:27:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![105314](https://avatars.discourse-cdn.com/v4/letter/1/cc9497/32.png) [@105314](https://forum.kirupa.com/u/105314)\
**Post date:** [December 20, 2002, 11:27pm UTC](https://forum.kirupa.com/t/need-a-actions-script-code-to-allow-my-a-user-to-lcik-on-the-same-button-twice-and-no/9928/1 "2002-12-20T23:27:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 21, 2002, 1:19am UTC](https://forum.kirupa.com/t/need-a-actions-script-code-to-allow-my-a-user-to-lcik-on-the-same-button-twice-and-no/9928/2 "2002-12-21T01:19:18Z")

</div>

Use a flag

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

```

pom 🙂
