PDA

View Full Version : Doubleclicking a MC


afaquaholic
01-17-2006, 08:08 PM
Trying to write script that performs after doubleclicking the movieclip. is there an easy way to do this or should i program a timer into the .onPress and an if statement to check if timer is still active?

Flash Gordon
01-17-2006, 08:11 PM
yup. need a timer function (at least for F7)

Xeef
01-17-2006, 08:21 PM
_mc.onPress = function() {
sensitivity=500
if (this.T+sensitivity>getTimer() && this.T) {
trace("DubleClick");
this.T = 0;
} else {
trace("SingleClick");
this.T = getTimer();
}
};