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), 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!