0
Tweening blur filter - Actionscript 2.0
New Here
,
/t5/animate-discussions/tweening-blur-filter-actionscript-2-0/td-p/245621
Aug 19, 2007
Aug 19, 2007
Copy link to clipboard
Copied
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!
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!
TOPICS
ActionScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/animate-discussions/tweening-blur-filter-actionscript-2-0/m-p/245622#M273468
Aug 19, 2007
Aug 19, 2007
Copy link to clipboard
Copied
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.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
mynameissam_co_uk
AUTHOR
New Here
,
/t5/animate-discussions/tweening-blur-filter-actionscript-2-0/m-p/245623#M273469
Aug 19, 2007
Aug 19, 2007
Copy link to clipboard
Copied
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
I want apply the blur at zero strength and then tween the strength
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/animate-discussions/tweening-blur-filter-actionscript-2-0/m-p/245624#M273470
Aug 19, 2007
Aug 19, 2007
Copy link to clipboard
Copied
:
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

