Here's a script to check if you have double clicked on an object (movieclip, button, etc)
Add this to your main timeline:
Object.prototype.checkDoubleClick = function() {
var cond = this.lastClick ? getTimer()-this.lastClick<300 ? true : false : false
this.lastClick=getTimer()
return cond
}
Now you just call it from the object you want to. For example, a button:
on(release) {
if(this.checkDoubleClick()) {
trace("Double Click")
}
}
I was bored, and I havn't got any AS or FOSS threads out there, so i thought i'd help people out with a simple solution to checking for double clicks