All pastes #171469 Raw Edit

Supernaut

public text v1 · immutable
·published 2006-09-15 12:55 UTC
rendered paste body
function zoomJob( startTime_num:Number, detailjob_mc:MovieClip )
{
	//var duration_num:Number = this.zoomDuration_num;
	var duration_num:Number = 1000;
	var self:MovieClip = this;
	this.t2_num = getTimer()-startTime_num;
	var minScale_num:Number = 0;
	var maxScale_num:Number = 0;
	if ( detailjob_mc.detail_bool ) {
		detailjob_mc.detail_bool = false;
		minScale_num = 100;
		maxScale_num = 75;
		var scale_num:Number = Regular.easeOut( this.t2_num, 100, -25, duration_num );
	}
	else {
		detailjob_mc.detail_bool = true;
		minScale_num = 75;
		maxScale_num = 100;
		var scale_num:Number = Regular.easeOut( this.t2_num, 75, 25, duration_num );
	}
	if ( t2_num >= this.zoomDuration_num || ( detailjob_mc._xscale >= 100 ) ) {
		detailjob_mc._xscale = detailjob_mc._yscale = 100;
		detailjob_mc.onRelease = function()
		{
			self.detailJob(this);
		}
		clearInterval( this.detailInterval_num );
	}
	else {
		detailjob_mc._xscale = detailjob_mc._yscale = scale_num;
	}
	updateAfterEvent();
}
function detailJob( detailjob_mc:MovieClip)
{
	delete detailjob_mc.onRelease;
	this.detailtime_num = getTimer();
	this.detailInterval_num = setInterval( this, "zoomJob", 5, this.detailtime_num, detailjob_mc );
}