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

📄 mjzx_mc.as

📁 flash mx 在线 视频 初步实现和呵呵呵呵呵呵呵恶化和俄
💻 AS
字号:
var pace	= 30;mjzxContentMake();function mjzxContentMake(){	this.attachMovie("content_mask","mask_mc",this.getNextHighestDepth());	mask_mc._x		= mjzx_content._x;	mask_mc._y		= mjzx_content._y;	mask_mc._width	= mjzx_content.__width-11;	mask_mc._height	= scroll_mc._height;	mjzx_content.setMask(mask_mc);}scrollBar();function scrollBar(){		scroll_mc.scroll_bar.initial = function() 	{		this.min = this._parent.up_mc._height+this._parent.up_mc._y;		this.max = this._parent._height - this._parent.down_mc._height-this._height;		inc = (this.max-this.min) / (mjzx_content._height - mask_mc._height);	}					//-------上--------------	scroll_mc.up_mc.onPress	= function()	{		this.onEnterFrame	= function()		{			if(this._parent.scroll_bar._y <= this._parent.scroll_bar.min + pace)			{				this._parent.scroll_bar._y	= this._parent.scroll_bar.min;				mjzx_content._y		= this._parent._y;
			}			else			{				this._parent.scroll_bar._y	-= pace;				mjzx_content._y		+= pace/inc;
			}		}	}	scroll_mc.up_mc.onRelease	= scroll_mc.up_mc.onReleaseOutside = function()	{		delete this.onEnterFrame;	}			//-------下--------------	scroll_mc.down_mc.onPress	= function()	{		this.onEnterFrame	= function()		{			if(this._parent.scroll_bar._y >= this._parent.scroll_bar.max - pace)			{				this._parent.scroll_bar._y = this._parent.scroll_bar.max;				mjzx_content._y		= this._parent._y - (mjzx_content._height - mask_mc._height);
			}			else			{				this._parent.scroll_bar._y	+= pace;				mjzx_content._y		-= pace/inc;
			}
		}
	}	scroll_mc.down_mc.onRelease	= scroll_mc.down_mc.onReleaseOutside = function()	{		delete this.onEnterFrame;	}			//--------滚动条----------------------		scroll_mc.scroll_bar.onPress	= function()	{		this.startDrag(false, this._x, this.min, this._x, this.max);		this.onEnterFrame	= function()		{			mjzx_content._y	= (this._parent._y + this._parent.down_mc._height / inc)-this._y/inc
		}	}	scroll_mc.scroll_bar.onRelease	= scroll_mc.scroll_bar.onReleaseOutside	= function()	{		delete this.onEnterFrame;		this.stopDrag();	}			//-----------------------------------------	scroll_mc.scroll_back.onPress	= function()	{		if(this._parent._ymouse - this._parent.up_mc._height < this._parent.scroll_bar._y )		{			this.onEnterFrame	= function()			{				if(this._parent.scroll_bar._y <= this._parent.scroll_bar.min + pace)				{					this._parent.scroll_bar._y	= this._parent.scroll_bar.min;					mjzx_content._y		= this._parent._y;					delete this.onEnterFrame;
				}				else				{					this._parent.scroll_bar._y	-= pace;					mjzx_content._y		+= pace/inc;					if(this._parent._ymouse >= this._parent.scroll_bar._y)					{						this._parent.scroll_bar._y  = this._parent._ymouse;						mjzx_content._y	= (this._parent._y + this._parent.down_mc._height/inc) - this._parent.scroll_bar._y / inc;						delete this.onEnterFrame;					}
				}			}
		}		else		{			this.onEnterFrame	= function()			{				if(this._parent.scroll_bar._y >= this._parent.scroll_bar.max - pace)				{					this._parent.scroll_bar._y = this._parent.scroll_bar.max;					mjzx_content._y		= this._parent._y - (mjzx_content._height - mask_mc._height);					delete this.onEnterFrame;
				}				else				{					this._parent.scroll_bar._y	+= pace;					mjzx_content._y		-= pace/inc;					if(this._parent._ymouse - this._parent.up_mc._height <= this._parent.scroll_bar._y + this._parent.scroll_bar._height - this._parent.up_mc._height)					{						this._parent.scroll_bar._y  = this._parent._ymouse - this._parent.scroll_bar._height;						mjzx_content._y	= (this._parent._y + this._parent.down_mc._height/inc) - this._parent.scroll_bar._y / inc;						delete this.onEnterFrame;					}
				}
			}
		}
	}	scroll_mc.scroll_back.onRelease	= scroll_mc.scroll_back.onReleaseOutside = function()	{		delete this.onEnterFrame;	}																	scroll_mc.scroll_bar.initial();}//scroll_back

⌨️ 快捷键说明

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