Skip to main content
Known Participant
August 19, 2007
Question

Tweening blur filter - Actionscript 2.0

  • August 19, 2007
  • 1 reply
  • 488 views
Hey guys,

I've been scouring the internet for the past hour or so in search of how to do this. It's very simple, but every example seem to want me to bring a loaded movie clip, or trace mouse position. I don't need that!

Basically I have a button that when clicked comes to the front (using behaviours), moves to a new position, scales and then I want every other button behind it to blur. Obviously I want them to blur gradually to keep the flow going.

Here's my current code so you can see where its going:

on (release) {

import mx.transitions.easing.*;
import mx.transitions.Tween;
import flash.filters.BlurFilter;

//Bring to Front Behavior
mx.behaviors.DepthControl.bringToFront(_root.testi monials_content.testimonial1);
//End Behavior

//gets rid of buttons
gotoAndPlay("no_buttons");

//brings to centre
var testimonialX:Tween = new Tween(testimonial1, "_x", mx.transitions.easing.Back.easeOut, -377, 0, 10, false);

testimonialX.onMotionFinished = function() {

//scaling
var testimonialH:Tween = new Tween(testimonial1, "_height", mx.transitions.easing.Bounce.easeOut, 134, 333, 10, false);
var testimonialW:Tween = new Tween(testimonial1, "_width", mx.transitions.easing.Bounce.easeOut, 146, 363, 10, false);

//blurs other testimonials

}
}

All the instances are already on the stage so I don't want to go calling anything else in.

So how do I simply say I want testimonial to blur over 5 frames or so?


Cheers!
This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
August 19, 2007
you can't. but you can tween any property of the blur, like its strength. and that would give the appearance of a gradual blur being applied.
Known Participant
August 19, 2007
sweet, thats what i meant! How do I do this with actioscript.

I want apply the blur at zero strength and then tween the strength
kglad
Community Expert
Community Expert
August 20, 2007
: