# Dragable buttons

**URL:** https://forum.kirupa.com/t/dragable-buttons/70887
**Category:** Uncategorized
**Created:** [November 18, 2004, 4:55pm UTC](https://forum.kirupa.com/t/dragable-buttons/70887 "2004-11-18T16:55:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![botulism](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@botulism](https://forum.kirupa.com/u/botulism)
#### Post date: [November 18, 2004, 4:55pm UTC](https://forum.kirupa.com/t/dragable-buttons/70887/1 "2004-11-18T16:55:24Z")

</div>

building a website, and the menu consists of square buttons that can be dragged and dropped individually. There are ten of these. The dragging&dropping part already works (check [www.finditboys.tk](http://www.finditboys.tk)), but what i want to do is have the buttons perform actions (open different pages etc) when you double click them. Now i guess i will have to add some sort of counter loop to the script i already have, and the counter should check if there is a second click within a certain amount of time. But… how do i do this? Or is there an easier way to check for double clicks?

The buttons aren’t actually buttons by the way, they are movie clips, and they all have the following action script:

[FONT=Courier New]on (release) {  
stopDrag();  
}  
on (press) {  
startDrag(this);  
mx.behaviors.DepthControl.bringToFront(this);  
}[/FONT]

can someone help me on this one? thanks! 🙂
