All pastes #570879 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-06-16 22:15 UTC
rendered paste body
var gf:GlowFilter = new GlowFilter(0xFFFFFF, .2, 10, 10, 2, 2, true);
var gfBX:Tween = new Tween(gf, "blurX", Elastic.easeOut, 10, 10, 1, true);
var gfBY:Tween = new Tween(gf, "blurY", Elastic.easeOut, 10, 10, 1, true);

mcl_mcl.onLoadInit = function (targetMC) {
	gfBX.onMotionChanged = function() {
		targetMC._parent.filters = [gf];
	}
	targetMC._parent.onRollOver = function() {
		gfBX.continueTo(30, 2);
		gfBY.continueTo(30, 2);
	}
	targetMC._parent.onRollOut = function() {
		gfBX.continueTo(10, 2);
		gfBY.continueTo(10, 2);
	}
}