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

📄 zoomer.as

📁 flash blog
💻 AS
字号:
 ////Yellow Zoomerimport gotopclass zoomer extends MovieClip{	var mc : MovieClip	var zommenterframe : MovieClip	var depthenterframe : MovieClip	var callfunction : Function	var bigh, bigw, bianju, myPoint, wuchax, wuchay	function onLoad ()	{		this.createEmptyMovieClip ("depthenterframe", - 125)		depthenterframe.mc = mc		depthenterframe.thismc = this		depthenterframe.onEnterFrame = function ()		{			_parent._x = this.mc._x + this.mc._width - _parent._width			_parent._y = this.mc._y + this.mc._height - _parent._height			if (this.mc.getDepth () > this.thismc.getDepth ())			{				this.thismc.setDepthAbove (this.mc)			}		}		this.bianju = 0		this._x = this.mc._x + this.mc._width - this._width		this._y = this.mc._y + this.mc._height - this._height		onPress = function ()		{			startzoom ()		}		onRollOver = function ()		{			new gotop (_root.zoom_mouse)			new gotop (_root.zoom_mouse)			Mouse.hide ();			this.createEmptyMovieClip ("zommenterframe", - 124)			zommenterframe.mc = this.mc			_root.zoom_mouse._x = _root._xmouse			_root.zoom_mouse._y = _root._ymouse			_root.zoom_mouse._visible = true			zommenterframe.onEnterFrame = function ()			{				_root.zoom_mouse._x = _root._xmouse				_root.zoom_mouse._y = _root._ymouse			}		}		onRollOut = function ()		{			Mouse.show ();			_root.zoom_mouse._visible = false			delete zommenterframe.onEnterFrame			zommenterframe.removeMovieClip ()		}		onRelease = onReleaseOutside = function ()		{			new gotop (_root.zoom_mouse)			stopzoom ()		}	}	function startzoom ()	{		new gotop (this.mc)		new gotop (this)		new gotop (_root.zoom_mouse)		this.createEmptyMovieClip ("zommenterframe", - 124)		myPoint = {			x : _root._xmouse, y : _root._ymouse		};		this.mc._parent.globalToLocal (myPoint)		zommenterframe.wuchax = (this.mc._x + this.mc._width) - myPoint.x		zommenterframe.wuchay = (this.mc._y + this.mc._height) - myPoint.y		zommenterframe.mc = this.mc		zommenterframe.callfunction = callfunction		zommenterframe.onEnterFrame = function ()		{			myPoint = {				x : _root._xmouse, y : _root._ymouse			};			this.mc._parent.globalToLocal (myPoint)			if (this.mc._width > _parent.bigw || myPoint.x - this.mc._x > this.mc._width )			{				this.mc._width = myPoint.x - this.mc._x + wuchax			}			if (this.mc._height > _parent.bigh || myPoint.y - this.mc._y > this.mc._height )			{				this.mc._height = myPoint.y - this.mc._y + wuchay			}			_parent._x = this.mc._x + this.mc._width - _parent._width			_parent._y = this.mc._y + this.mc._height - _parent._height			_root.zoom_mouse._x = _root._xmouse			_root.zoom_mouse._y = _root._ymouse			callfunction ()		}	}	function stopzoom ()	{		if (this.mc._width < bigw)		{			this.mc._width = bigw		}		if (this.mc._height < bigh)		{			this.mc._height = bigh		}		if (this.mc._width > Stage.width - (this.mc._x + this.mc._parent._x)-5)		{			this.mc._width = Stage.width - (this.mc._x + this.mc._parent._x)-5		}		if (this.mc._height > Stage.height - (this.mc._y + this.mc._parent._y)-5)		{			this.mc._height = Stage.height - (this.mc._y + this.mc._parent._y)-5		}		callfunction ()		this._x = this.mc._x + this.mc._width - this._width		this._y = this.mc._y + this.mc._height - this._height		Mouse.show ();		_root.zoom_mouse._visible = false		delete zommenterframe.onEnterFrame		zommenterframe.removeMovieClip ()	}}

⌨️ 快捷键说明

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