Jump to content

Recommended Posts

Posted

depois de umas pesquisas aqui fica a dica 👍

Imaginei que estou a mover um movieClip (mcSearchBox) para uma determinada posição, neste caso para o centro do Stage, ao mesmo tempo que faço o movimento da tween aplico-lhe o efeito de BlurFilter... Fica porreiro o efeito 😛

var xPos:Tween = new Tween(mcSearchBox, "_x", Elastic.easeOut, mcSearchBox._x, Math.ceil(Stage.width/2-(mcSearchBox._width/2)), easeSpeed, true);
var yPos:Tween = new Tween(mcSearchBox, "_y", Elastic.easeOut, mcSearchBox._y, Math.ceil(Stage.height/2-(mcSearchBox._height/2)), easeSpeed, true);

xPos.onMotionChanged = function() {
	mcSearchBox.filters = [new BlurFilter(mcSearchBox.blur, mcSearchBox.blur, 1), new DropShadowFilter(1, 90, 0x000000, .8, 1, 1, 1, 1)];
};

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.