# Double click or not double click

**URL:** https://forum.kirupa.com/t/double-click-or-not-double-click/260826
**Category:** Uncategorized
**Created:** [May 20, 2008, 9:54am UTC](https://forum.kirupa.com/t/double-click-or-not-double-click/260826 "2008-05-20T09:54:14Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)
#### Post date: [May 20, 2008, 9:54am UTC](https://forum.kirupa.com/t/double-click-or-not-double-click/260826/1 "2008-05-20T09:54:14Z")

</div>

Well I’ve got a bug in my code, where a button has to be double clicked to work.

Just wondering what is the standard distinction for the difference between single and double click.

my code

ActionScript Code:  
[LEFT]ns.[COLOR=#0000ff]seek[/COLOR]COLOR=#000000[/COLOR];  
subtitles.[COLOR=#0000ff]\_visible[/COLOR] = [COLOR=#000000] **true** [/COLOR];  
sign.[COLOR=#0000ff]\_visible[/COLOR] = [COLOR=#000000] **true** [/COLOR];  
signer = [COLOR=#000080]1[/COLOR];  
signCode = [COLOR=#000080]1[/COLOR];  
\_root.[COLOR=#0000ff]button[/COLOR]COLOR=#000000[/COLOR];[/LEFT]

the idea is that it runs a function only when the above button is pressed, but it doesn’t seem to work the first time you press the button any ideas?

---

<div class="post-metadata">

### Author: ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)
#### Post date: [May 20, 2008, 1:02pm UTC](https://forum.kirupa.com/t/double-click-or-not-double-click/260826/2 "2008-05-20T13:02:30Z")

</div>

Most likely a problem with the booleans, but it’s pretty hard to troubleseek without the code 😉

---

<div class="post-metadata">

### Author: ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)
#### Post date: [May 20, 2008, 1:30pm UTC](https://forum.kirupa.com/t/double-click-or-not-double-click/260826/3 "2008-05-20T13:30:30Z")

</div>

I seemed to of fixed it… _…X-Files theme tune…_

though I’d agree with you 😜

---

<div class="post-metadata">

### Author: ![Pier25](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pier25](https://forum.kirupa.com/u/Pier25)
#### Post date: [May 20, 2008, 2:03pm UTC](https://forum.kirupa.com/t/double-click-or-not-double-click/260826/4 "2008-05-20T14:03:52Z")

</div>

As far as usability is concerned I think double clicking on web is not a very good practice unless you communicate it to the user.

Browsing doesn’t usually involve double clicks and most of users would not even think about doing a double click.

IMO 😉

---

<div class="post-metadata">

### Author: ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)
#### Post date: [May 20, 2008, 2:52pm UTC](https://forum.kirupa.com/t/double-click-or-not-double-click/260826/5 "2008-05-20T14:52:55Z")

</div>

I think I have found it, anyone know how to call a function once even though its essenially in an onenterframe?

thanks

---

<div class="post-metadata">

### Author: ![JBPresents](https://avatars.discourse-cdn.com/v4/letter/j/bc79bd/32.png) [@JBPresents](https://forum.kirupa.com/u/JBPresents)
#### Post date: [May 20, 2008, 4:19pm UTC](https://forum.kirupa.com/t/double-click-or-not-double-click/260826/6 "2008-05-20T16:19:36Z")

</div>

just plop it on teh root
