knopka.onPress = function() { t = getTimer(); }; knopka.onRelease = function() { get_time = -(t -= getTimer()); trace(get_time); };