scrollHandler = function() { _root.tf.scroll++; } _root.downBtn.onPress = function () { _root.onEnterFrame = scrollHandler; }; _root.downBtn.onRelease = _root.downBtn.onReleaseOutside = function() { delete _root.onEnterFrame; }