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)
_mc.onPress = function() {
sensitivity=500
if (this.T+sensitivity>getTimer() && this.T) {
trace("DubleClick");
this.T = 0;
} else {
trace("SingleClick");
this.T = getTimer();
}
};
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.