All pastes #84311 Raw Edit

Something

public text v1 · immutable
·published 2006-07-10 20:18 UTC
rendered paste body
onClipEvent (enterFrame) {
	// Vars
	var speed = .08;
	var theMask = this._parent._parent.scroll_long.myMask;
	var theCenter = this._parent.centercheck;
	var limitR = this._parent._x+theMask._x-this._width/2;
	var limitL = this._parent._x+theMask._x-theMask._width-this._width/2;
	//trace("limit R = "+limitR);
	//trace("limit L = "+limitL);
	if (this._parent._parent._ymouse>465 && this._parent._parent._ymouse<595 && _parent._xmouse>theMask._x && _parent._xmouse<(theMask._x+theMask._width)) {
		var bl = new flash.filters.BlurFilter();
		bl.quality = 2;
		bl.blurX = 0;
		bl.blurY = 0;
		var tx = this._x;
		var diff = -(this._parent._parent._xmouse-(theCenter._x+this._parent._x));
		if (limitR>(this._x+diff*speed)>limitL) {
			this._x += diff*speed;
		}
		if (this._x>0) {
			this._x = 0;
		}
		if (this._x<(0-this._width+theMask._width)) {
			this._x = (0-this._width+theMask._width);
		}
		bl.blurX = Math.abs(tx-this._x);
		this.filters = [bl];
	}
}