/ Published in: ActionScript
This is to prevent ComboBox from closing when onRelease on scrollBar
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
mx.controls.scrollClasses.ScrollThumb.prototype.onRelease = function(Void):Void { //this._parent.releaseFocus(); this.stopDragThumb(); this.super.onRelease(); } mx.controls.scrollClasses.ScrollThumb.prototype.onReleaseOutside = function(Void):Void { //this._parent.releaseFocus(); this.stopDragThumb(); this.super.onReleaseOutside(); } mx.controls.SimpleButton.prototype.onRelease = function(Void):Void { //this.releaseFocus(); this.phase = "rollover"; if (this.interval != undefined) { clearInterval(this.interval); delete this.interval; } if (this.getToggle()) { this.setState(!getState()); } else { this.refresh(); } this.dispatchEvent({type:"click"}); } mx.controls.SimpleButton.prototype.onReleaseOutside = function(Void):Void { //this.releaseFocus(); this.phase="up"; if (this.interval != undefined) { clearInterval(this.interval); delete this.interval; } }