⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 colorpickerdummi.as

📁 flashget43的源代码 一个比较常用的下载程序
💻 AS
字号:
#initclip 10_global.ColorPickerDummi = function() {                	this.init();		this.value = 0;		this.content_mc = null;		this.icon_mc.useHandCursor = false;	this.icon_mc.onRelease = function() {		this._parent.onIconOpen();	};};_global.ColorPickerDummi.prototype = new FUIComponentClass();_global.ColorPickerDummi.prototype.setChangeHandler = function(inFunc, inHandl){	this.handlFunc = inFunc;	this.handlObj  = inHandl;};_global.ColorPickerDummi.prototype.setValue = function(inColor){	this.value = inColor;	var c = new Color(this.icon_mc.icon_preview);			c.setRGB(this.value);};_global.ColorPickerDummi.prototype.getValue = function(){	if(this.content_mc != null) 		this.value = this.content_mc.getValue();	this.setValue(this.value);		return( this.value );};_global.ColorPickerDummi.prototype.setEnabled = function(inValue){	this.icon_mc.icon_preview._visible = inValue;	this.icon_mc.enabled = inValue;};_global.ColorPickerDummi.prototype.getEnabled = function(){	return (this.icon_mc.enabled);};_global.ColorPickerDummi.prototype.onIconOpen = function(){	this.icon_mc._visible = false;		this.content_mc = this.pickerHolder.attachMovie('FColorPickerSymbol', 'content_mc', 1, {initColor : this.value});	this.content_mc.setChangeHandler(this.handlFunc, this.handlObj);	this.content_mc.setCloseHandler('onIconClose', this);		this.onEnterFrame = function()	{ 		delete this.onEnterFrame;		this.content_mc.open();	}};_global.ColorPickerDummi.prototype.onIconClose = function(){	if(this.content_mc != null) 	{ 		this.value = this.content_mc.getValue();		this.content_mc.removeMovieClip();		delete(this.content_mc);	}		this.icon_mc._visible = true;};Object.registerClass('ColorPickerDummi', _global.ColorPickerDummi);#endinitclip

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -