qqq.onPress = function() { if (!this.onEnterFrame) {this.onEnterFrame = function() {trace("!");}; } else { delete this.onEnterFrame;}; };