Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Blur Filter Help



Hi,

I want to put on a blur filter using actionscript.

Here is the code i used


Code:
//BLUR FILTER
var windowBlur = new flash.filters.BlurFilter();
window_mc.filters = windowBlur

var myTempFilters = window_mc.filters;
myTempFilters.push(windowBlur);
window_mc.filters = myTempFilters;

windowBlur.blurX = 50;
windowBlur.blurY = 50;
does anyone know why this is not working?

thanks

dan



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 05-06-2007, 09:03 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Blur Filter - Need To Blur Only The Objects At The Edge Of The Stage.
Hi everyone! I have created a slideshow which pulls in images with xml and then places them in a horizontal row in the middle of the stage. I have a previous and next button which cycles through the images.

I am trying to make the images blurry except for the one that is front and center on the screen. As you cycle through the images, they are blurry until they get to the center. How would I go about doing this?

I have imported the BlurFilter, but when I apply it to the imageholder mc, all of the images are blurry. How can I tell it to not blur the one currently in the center of the stage?

Thanks!

Blur Filter - Need To Blur Only The Objects At The Edge Of The Stage.
Hi everyone! I have created a slideshow which pulls in images with xml and then places them in a horizontal row in the middle of the stage. I have a previous and next button which moves this row of images left and right on the x axis.

I am trying to make the images blurry except for the one that is front and center on the screen. As you cycle through the images, they are blurry until they get to the center. How would I go about doing this?

I have imported the BlurFilter, but when I apply it to the imageholder mc, all of the images are blurry. How can I tell it to not blur the one currently in the center of the stage?

Colormatrix Filter And Blur Filter Tween
Last edited by sks447 : 2006-10-17 at 15:11.
























I want to have a picture fade from blurry and grayscale to sharp and colorized. I have the blur to sharp part working ok. I have the grayscale to color to working ok. The only thing is the filters dont work together. Ive tried to push one into another with no luck yet. You can see the comments in the code below. Thanks.

ActionScript Code:
function blurFunction(myVar) {
    // init what movieclip to blur
    if (myVar == undefined) {
        myVar = promoContainer.p1;
    }
    // BLUR FILTER     
    import flash.filters.BlurFilter;
    import flash.filters.BitmapFilter;
    import flash.filters.ColorMatrixFilter;
    var blurFilter:BlurFilter = new BlurFilter(0, 0, 3);
    desaturation = 1;
    var filterArray:Array = new Array();
    filterArray.push(blurFilter);
    var blurX:Number = 100;
    var blurY:Number = 100;
    onEnterFrame = function () {
        prevPromo._visible = false;
        nextPromo._visible = true;
        if (desaturation>=1) {
            des = -0.03;
        } else if (desaturation<=0) {
            des = 0;
            delete (onEnterFrame);
        }
        desaturation += des;
        // color matrix 
        //myVar.filters = new Array(getDesaturationFilter(desaturation)); <---- I can have this....
        blurX -= 10;
        blurY -= 10;
        blurFilter.blurX = blurX;
        blurFilter.blurY = blurY;
        // blur filter 
        //myVar.filters = filterArray; <---- Or I can have this but not both.......
        if (blurY<=0) {
            blurY=0;
            blurX=0;
            //delete (onEnterFrame);
        }
    };
}
function getDesaturationFilter(t:Number):BitmapFilter {
    t = t != undefined ? t : 1;
    var r = 0.212671;
    var g = 0.715160;
    var b = 0.072169;
    trace("colormatrixfilter called");
    return new ColorMatrixFilter([t*r+1-t, t*g, t*b, 0, 0, t*r, t*g+1-t, t*b, 0, 0, t*r, t*g, t*b+1-t, 0, 0, 0, 0, 0, 1, 0]);
}

Blur Filter
Hey everyone,
I am trying to get my file so that when I click a button named "button 2" the instance named "big" gets a blur filter, slides to the right 100 pixels, and then the blur filter turns off....... Can anyone PLEASE help? I've been trying to do it all night... Thanks in advanced!


-Joe

Blur Filter
Hi,

i am trying to use the blur filter.. myMc is blurred fine untill i load a new swf into it, than the blur filter is removed.. is there any way to avoid this?


PHP Code:



  import flash.filters.BlurFilter;
var filterArray:Array = new Array();
var filter:BlurFilter = new BlurFilter(100, 100, 2);
filterArray[0] = filter;
myMC.filters = filterArray;




many thanks,
Gareth

Blur Filter.....
I came across a web site and am wondering how they blurred the whole screen. I have Flash 8 and I can blur each MC but I don't know how to do a full blur effect that covers all images, text, mc's, and layers of the Flash file. Any help?

www.firstbornmultimedia.com and the effect I am referring to is in the portfolio section then click on a thumbnail and then click to see the project and the portfolio is screened and blurred out of focus.

Thanks for the help!!!!

Blur Filter Help
I am trying to apply a blur to a movie clip and 'unblur' it on a RollOver of the macro_btn, It is blurred at first but doesnt unblur.

Im not sure what's wrong with my code:


Code:
import flash.filters.BlurFilter;
var blurred:BlurFilter = new BlurFilter(5, 5, 4);
var storedBlur:Array = [blurred];
bug_mc1.filters = bug_mc2.filters = storedBlur;
macro_btn.onRollOver = function() {
_root.bug_mc1.filters = null;
}
macro_btn.onRollOut = function() {
bug_mc1.filters = storedBlur;
}
any ideas?

many thanks

Blur Filter
Hi,

i am trying to use the blur filter.. myMc is blurred fine untill i load a new swf into it, than the blur filter is removed.. is there any way to avoid this?


PHP Code:



  import flash.filters.BlurFilter; var filterArray:Array = new Array(); var filter:BlurFilter = new BlurFilter(100, 100, 2); filterArray[0] = filter; myMC.filters = filterArray; 




many thanks,
Gareth

Blur Filter
Im trying to target a specific item in the array. It traces but I cant seem to target it. I want to make a function that will loop through the array and blur each item after a set period of time, but I am stuck on the first part. Here is the problem line "this.filters = filterArray[2];" Thanks


ActionScript Code:
import flash.filters.BlurFilter;
var blurFilter:BlurFilter = new BlurFilter(0, 0, 3);
var filterArray:Array = new Array("more", "than", "75", "las", "vegas", "shows");
//var filterArray:Array = new Array();
filterArray.push(blurFilter);
var blurX:Number = 0;
var blurY:Number = 200;
this.onEnterFrame = function() {
    //var blurX:Number = this._xmouse / 10;
    //var blurY:Number = this._ymouse / 10;
    //blurX -= 10;
    blurY -= 10;
    blurFilter.blurX = blurX;
    blurFilter.blurY = blurY;
    this.filters = filterArray[2];
    trace(filterArray[2]);
    //trace("looping");
    if (blurY<=0) {
        delete (this.onEnterFrame);
        //trace("delete");
    }
};
stop();

How To Clear The Blur Filter?
I am using the following code to blur a movieclip

function blurMe(blurX, blurY) {
import flash.filters.BlurFilter;
quality = 1;
filter = new BlurFilter(blurX, blurY, quality);
filterArray = new Array();
filterArray.push(filter);
this.filters = filterArray;
if (blurX == 0) {
if (blurY == 0) {
filterArray = [];
this.cacheAsBitmap = false;
}
}
}

itWorks great, but I can't seem to get the blur to turn off completely. If I set the blurX&Y to 0 the Help DOCs say it will not apply a blur filter, but while there is not visual blur, I am still experiencing the FPS hit as if the movie clip where blurred.

The Help DOCs also frequently reference "clearing" the filter. I assume that means assigning it to an empty array as I have tried here, but the FPS hit is still there.

Anyone know how to clear it and get back my FPS after using the blur?

Blur Filter Slow
Is there a reason why the blurfilter is so slow? I set the quality at 3 and also tried one, but it slows down my animations. I've also tried TweenFilterLite as well, and it's also slow as well.

Help With The Blur Filter Using Fuse
When using the,

mc.Blur_blurTo (100);

The quality of the blur is default to the lowest. How would I change the quality?

IF Function And Blur Filter
Hi,

I want to be able to alter the blur of a movie clip with a slider.

Here is the code i have used:

Code:
//
// Make a new blur filter.
var windowBlur = new flash.filters.BlurFilter();
// Create an array;
myTempFilters = [];
// Put the filter in an array.
myTempFilters.push(windowBlur);
// Assign the array to the "filters" property of your movieclip.
window_mc.filters = myTempFilters;
//
//

onEnterFrame = function () {
//trace(_root.sliderPosition);
_root.sliderPosition = _root.mySlider._y;
if (_root.sliderPosition>146 && _root.sliderPosition<166) {
myClip.gotoAndStop('first');
// Set the filter's properties.
windowBlur.blurX = 0;
windowBlur.blurY = 0;

}
if (_root.sliderPosition>166 && _root.sliderPosition<186) {
myClip.gotoAndStop('second');
// Set the filter's properties.
windowBlur.blurX = 50;
windowBlur.blurY = 50;

}
if (_root.sliderPosition>186 && _root.sliderPosition<206) {
myClip.gotoAndStop('third');
}
Does anyone know what i have to do to change the blur with the slider?

Thanks
__________________
Dan

Animate Blur Filter?
I have some images that I want to fade in and blur in at the same time, then fade/blur out.

I can do the fade easily....but what's the best way to animate a blur filter in AS?

Thanks.

Blur Filter Confusion
Hi i have a single transparent (per pixal transperency) png imported to the stage . Id like to add some blur behind the png without bluring my sharp png much like vista's aero glass.

I have tried creating a movieclip with a single white shape and applied a blur filter to that which gives me the effect i want of the background blured behind the png but with a white tint as i decrese the alpha value and at 0 my blur filter disapers aswell .

Does anyone know of a solution without applying the blur filter to my transparnt png ?

Blur Filter Slow
Is there a reason why the blurfilter is so slow? I set the quality at 3 and also tried one, but it slows down my animations. I've also tried TweenFilterLite as well, and it's also slow as well.

Blur Filter Problem
hi
i have a question about blur filter.
when i remove blur filter from my sceneContainer, small texts which is in my sceneContainer are seem bad. like there is no anti aliasing. i tried to remove text movieclip and added new text clip to sceneContainer again result is same. it seems like to me there is still blur filter on container but i can't trace it on control panel when i write

trace(sceneContainer.filters.blurFilter2.blurX);

it says
TypeError: Error #1010 A term is undefined and has no properties.

here is the simplified code i use it for adding and removing blurfilter

if (blurFilter2.blurX == 0) {

blurFilter2.blurX = 7;
blurFilter2.blurY = 7;
}

if (blurFilter2.blurX == 7) {

blurFilter2.blurX = 0;
blurFilter2.blurY = 0;
}

sceneContainer.filters = [blurFilter2];

do you have any idea
see you

AS 3.0 - Animate Blur Filter...
I've looked for a few days and I can't find out how to animate a blur filter with actionscript. I have a box on the stage that I'm tweening and I just want to add motion blur to it. I'm trying to use the MOTION_CHANGE listener but no luck yet. Thanks!

[F8] How To Add The Blur Filter To This AS Animation?
How can i add the blur filter to this animation, acording to the speed of it?

Thanks

Blur Filter Problem ... :(
I have this script and I can't figure out why it works when I have 7 pictures to scroll between but when I have 12 images it doesn't work ...

Any ideas?

Thanks!

Boon.


Code:

// Motion Blur slider
//
stop();
import flash.filters.BlurFilter;
//
// Variables
//
var speed:Number = 1.8;
var numButtons:Number = 12;
var blFilter:BlurFilter = new BlurFilter(0, 0, 2);
var imgDist:Number = 305;
//
// Functions
//
function initButtons():Void {
for (var i = 0; i<numButtons; i++) {
var btn:MovieClip = this["b"+i];
btn.targetx = -(i*imgDist);
btn.onRelease = function() {
blurTo(slider_mc.images_mc, this.targetx);
};
}
}
function blurTo(mc:MovieClip, tx:Number):Void {
// common ease equation
mc.onEnterFrame = function() {
var dx:Number = tx-this._x;
var blurAmount:Number = Math.abs(dx);
blFilter.blurX = blurAmount;
this.filters = [blFilter];
var movex:Number = dx/speed;
this._x += movex;
if (Math.abs(this._x-tx)<1) {
delete this.onEnterFrame;
this.filters = null;
this._x = tx;
}
};
}
//
// Begin
//
initButtons();
Here is the .fla

Blur Filter & Tweening
for some reason i can't seem to get my head around how to do this.

basically i want to tween in a movieclip (flies in vertically) and as it tweens in i want it to blur and as the tween class tween ends, i want the blur to fade out. Maybe as the tween reaches it's halfway point the blur could decrease so it comes to a nice natural stop.

i've been over the tutes and can't seem to get a grip on it...

here's my (NEW) code (not anywhere close at this point):


Code:
startMain=function(){


var t1:Tween = new Tween(tallClip, "_y", Bounce.easeOut, startPos, targetPos, 3, true);
var t2:Tween = new Tween(tallClip, "_alpha", None.easeNone, 0, 100, .25, true);

t1.onMotionChanged=function(){
trace("duration: "+this.duration);
trace(this.time);
var blurAm:Number = ((this.duration - this.time)*10)/2;
trace("BLURAM: "+blurAm);

var myBlur = new flash.filters.BlurFilter();
var myBlur:BlurFilter = new BlurFilter(0, blurAm, 3);
var myTempFilters:Array = new Array();
myTempFilters.push(myBlur);
_root.tallClip.filters = myTempFilters;

}



}


startMain(startPos, targetPos);

at this point i can't seem to even get the blur applied to my clip properly...

ggrrr!!!

Blur Filter Issue
hi there kirupa's!

well, i'm wondering about the blur filter...
i'm building a cd-rom aplication and i'm using a blur filter in a movieclip reflection, but when i publish my work, the blur is not set!

i have other areas where the blurs work, and i'm wondering if it could be caused by the really huge size of the movieclip (about 3500 width). could the movieclip's size be the problem?

i'm also using the setMask to create a alpha gradient, that dont work either.

anyone had ever experienced any problem like this? its just this movieclip, so i'm starting to think its due to the clip's size...


thanks in advance!
and keep up the good work!

Applying A Blur Filter?
The code below fades three mc instances into each other.  The movieclip instances are called, picture1_mc, picture2_mc,
picture3_mc. They are based on three bitmap images that also sit in the library.  I manually converted the original
 bitmaps into movieclips on the stage area.  The fade code works fine, but what I would like to do is allow the user to
mouse click and cause a blur effect whilst the images are cycling along.  My problem is that Im not sure how to apply
this within my mousedown function.  The applyFilter method seems to call for bitmaps but I'm dealing with movieclips.
Thanks for any guidance
import flash.display.BitmapData;
import flash.geom.Point;
import flash.geom.Rectangle;
import flash.filters.BlurFilter;
var filter2:BlurFilter = new BlurFilter(Math.ceil(Math.random()*5), Math.ceil(Math.random()*5), 3);

init = function () {
    currentIndex = 1;
    currentLayer = 1;
    howLongToWait = 0;
    _root.attachMovie("picture1_mc", "pic1", 0);
    addNewPic();
};
addNewPic = function () {
    clearInterval(myInterval);
    if (currentIndex%3 != 0) {
        currentIndex++;
    } else {
        currentIndex = 1;
    }
    newlyAdded_mc = _root.attachMovie("picture"+currentIndex+"_mc", "pic"+currentIndex, currentLayer++);
    newlyAdded_mc._alpha = 0;
    newlyAdded_mc.onEnterFrame = function() {
        this._alpha += 2;
        if (this._alpha>=100) {
            this.onEnterFrame = null;
            myInterval = setInterval(addNewPic, howLongToWait*100);
        }
    };
};
// run init()
init();
onMouseDown = function ()
{
    //problems here!!!!!!!!!
    var point:Point = new Point(_root._xmouse, _root._ymouse);
    var rec:Rectange = new Rectangle(100,100,6,6);
    //problem applying filter
    //????.applyFilter(?????,rect,point,filter2)
};
myListener = new Object();
Mouse.addListener(myListener);

Blur Filter Limits ?
I came across a great site that has a blur effect when scrolling. I've managed to apply it to a site that i was building and it worked great, BUT, in this site i've built a XML dynamic gallery that loads Jpegs externally and at a certain point the blur filter applied to this gallery stops.... :shock: . i the went to the help docs to find out why...
It seems that the flash 8 filters won't apply themselves to objects bigger than 2880 pixels. Witch is a problem for a dynamic gallery. By the 7th photo the filter stops working.

I've created the gallery this way:

Create empty MC named "main"
attach a previously created MC w/ a linkage ID "item_mc".
In this "item_mc" i have a empty MC named "loader" and 2 dyn. textfields
Then i load the xml and load the photos into "loader"

thus, i have _level0.main.item_mc+(number).loader

I apply the filter to "main" for when i scroll the gallery i obtain a nice blur effect. But as you can imagine the gallery increses size rapidly and when it reaches 2880 pixels the filter stops.

I would post the fla but a work ethics clause in my contract prevents me to do that.

Does any 1 know a way to go around this?

I've tried to apply the filter to each "item_mc" but that is too processor intensive (68 pictures :shock: )

cheers...

'flatten' Blur Filter? (to Bitmap)
Hello, is there a way to render a movie clip to a bitmap once a filter is applied, to the Same movie clip?

i have a clip on stage, a blurfilter is applied:

treeHolder.tree.filters = [bf];

i want to simply apply the blurfilter, then as soon as it is applied, just flatten the image, or convert that MC to a bitmap.

i have been playing around w/ a senecular code that copies a bitmap representation from one movie clip to another, but i want the blurred bitmap to just replace the current vector mc.

thanks for any help.
q

Tweener Blur Filter Not Working
Im having difficulty geting the blur filter to work with Tweener.. i get the message -

##[Tweener] Error: The property '_filter' doesn't seem to be a normal object property of [object Object] or a registered special property.

The example code i am trying to get working is the following -

import caurina.transitions.Tweener;
// Adding a new filter: creates a BlurFilter on the object
import flash.filters.BlurFilter;
var myBlur:BlurFilter = new BlurFilter(10, 10, 2);
Tweener.addTween(myMC, {_filter:myBlur, time:1, transition:"linear"});


What am i missing?

Blur Filter And Motion Tweens
I am creating an animation in which about 5 movie clips that have blur filters move across the screen. One movie clip starts with a gradient blur filter, and moves up the screen while the blur disappears. This movie clip seems to slow down everything completely.

Is there any way to speed this up a bit?

SetMask On Clip With Blur Filter
i ve a movie clip called main on root timeline...Inside main, i create a shape with dimensions 550 x 400 to fill the entire stage. Above this shape on a new layer i placed a move clip called star (inside star there is a star shape that scales up and down using shape tweening).Moving back to the root timeline i have applied blur filter to the main movieclip .Now above the movie clip main i placed another movie clip called box with dimensions 550 x 400...Now i m using the following code on the root timeline

main.setMask(box)

the problem is that when the star movieclip scales up and down it form a trail of its bounding box... how can i solve this problem

thnx in advance..

Tween A Blur Filter's Value Using Tweener
I have some code which i believe should tween a blur filter's value over time but it isnt working :(

any fixes would be greatly appreciated, below is all the code related to the filters and tweener functions







Attach Code

function removeThing(e:MouseEvent):void
{
var clip:MovieClip = e.target as MovieClip;


var bf:BlurFilter = new BlurFilter(0, 0, 3);
var filtersArray:Array = new Array();
filtersArray.push(bf);


clip.filters = filtersArray;

var scaleBig:Number = 3;
Tweener.addTween(bf, {blurX:100, blurY:100, time:5});
Tweener.addTween(clip, {scaleX:0, scaleY:0, time:5, transition:'linear', rotation:720, y:mouseY, x:mouseX});
bf.blurX = bf.blurY = 10;
}

























Edited: 06/03/2008 at 12:07:57 PM by UberShinySheep

Blur Filter According To Mouse Speed [F8]
Hello,

I´ve done a 3d object to rotate according to the position of the mouse while holding.
I´d like to add a blur effect to the MC while moving the mouse. So when the mouse is moving fast, the blur on the MC would 10, and if the mouse stoped, the blur would be 0.

is it possible?
thanks

Applying Blur Filter Using MASK
Is it possible to apply the filter blur to a masked area? if so, how?

Thanks

Unable To Apply Blur Filter
The code below fades three mc instances into each other. The movieclip instances are called, picture1_mc, picture2_mc,picture3_mc. They are based on three bitmap images that also sit in the library. I manually converted the original bitmaps into movieclips on the stage area. The fade code works fine, but what I would like to do is allow the user to
mouse click and cause a blur effect whilst the images are cycling along. My problem is that Im not sure how to apply this within my mousedown function. The applyFilter method seems to call for bitmaps but I'm dealing with movieclips. Thanks for any guidance
import flash.display.BitmapData;
import flash.geom.Point;
import flash.geom.Rectangle;
import flash.filters.BlurFilter;
var filter2:BlurFilter = new BlurFilter(Math.ceil(Math.random()*5), Math.ceil(Math.random()*5), 3);

init = function () {
currentIndex = 1;
currentLayer = 1;
howLongToWait = 0;
_root.attachMovie("picture1_mc", "pic1", 0);
addNewPic();
};
addNewPic = function () {
clearInterval(myInterval);
if (currentIndex%3 != 0) {
currentIndex++;
} else {
currentIndex = 1;
}
newlyAdded_mc = _root.attachMovie("picture"+currentIndex+"_mc", "pic"+currentIndex, currentLayer++);
newlyAdded_mc._alpha = 0;
newlyAdded_mc.onEnterFrame = function() {
this._alpha += 2;
if (this._alpha>=100) {
this.onEnterFrame = null;
myInterval = setInterval(addNewPic, howLongToWait*100);
}
};
};
// run init()
init();
onMouseDown = function ()
{
//problems here!!!!!!!!!
var pointoint = new Point(_root._xmouse, _root._ymouse);
var rec:Rectange = new Rectangle(100,100,6,6);
//problem applying filter
//????.applyFilter(?????,rect,point,filter2)
};
myListener = new Object();
Mouse.addListener(myListener);

Blur Filter In Class File
I am using
ActionScript Code:
var blurFilter:Array = this_mc.filters;blurFilter[0].blurX = 10;this_mc.filters = blurFilter;
to induce a 10px blur on my MC. It works when the code is placed right on the timeline of the MC in question.

However when i use the exact same code in an external "effects" class file, it does not work.

Should i be looking at refferencing problems? Scoping problems? What gives?

Problem With Loadmovie And Filter Blur
Hi,
I have a problem while load an external movie (with blur effect applied with flash 8 and as 2.0) in a swf (flash 8,as 2.0) with loadMovie....

Any solution?
Thanks a lot...

Animating Blur Filter With Actionscript
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!

Will Blur Filter Cause A Performance Problem?
Hi All

I have a question here. I am having 500 movie clips inside a main movie clip called main_mc .

The 500 movie clips are generated at runtime. I want to know if i apply blur filter to all these movie clips.. will. it cause a performance problem to my application?

Please reply if any one have any sort of idea about it.

Blur Filter Constantly Crashing CS4 IDE
In the last 2 projects i've worked on, i've been using the blur filter to create certain effects.

My problem is that whenever I test the movie in the Flash CS4 IDE, it crashes giving me the option to submit a crash report to Adobe before quitting.

If I run the compiled SWFs outside of Flash, they perform much better and there is no crashing.

Anyone else having this problem or know if it's a known issue?

Frosted Glass Look, Blur Filter + Transparency?
I've seen on some sites where buttons or 'page' backgrounds will look like frosted glass, with a background image visible through them. I can more or less simulate this look with a blur filter and transparent white (or pale colors) backgrounds; however the blur doesn't actually blur the image behind it.

For example, say I have a single photo or pattern that is static for the whole site. Now at the top, my menu buttons are somewhere between 20% and 60% transparent (been toying with different looks) and have a blur filter (15/15/low) applied. It blurs the outlines of the button, and the text if I don't make it a separate layer - but the background image doesn't look blurred or distorted as it should.

I have been able to work around it by copying in that single photo and masking it with the transparent/blurred 'button' and it looks good.

Now, same basic situation, but the single photo is no longer a single static image, but a separate layer in which the user can change images or patterns or colors. On top of that, different buttons and areas should appear to be covered by these frosted glass look items. This is where I want/need to be - but I can't figure out how to get there.

Any advice?

Any questions to clarify if I wasn't as clear as I think I was?

Thanks!

Need An Expert With Tween Class And Blur Filter
trying to get a tween class tween to incorporate the blur filter (the blur tweens in step with the motion tween)

i'm new to using the tween class and seem to have a good grip on that alone (relatively easy). adding the blur filter is proving more difficult.

check out my .fla. you'll see that i'm attempting to get the blur to work on the last button (the last function in the AS). The buttons tween the clip to the appropriate position (up or down). the motion tween calculates the number of positions between the next and last position and sets the tween duration accordingly (very basically anyway).

any help or insight is greatly appreciated! as it stands the blur occurs right as the motion tween is easing out and bogs down the flash player (so i'm obviously not doing something right!)

if anyone could comment on the feasibility of doing this (what are the pitfalls?) with a rather large vertical movie clip (containing .pngs and other clips, animations, etc.) that would be great.

Problem With Blur Filter With A Transparent Background
Hello,
Perhaps the answer to this question will be obvious to long-time flash users: I'm trying to apply the blur filter to my image (in Adobe AIR, I should add). This works, but the image is non-rectangular and has a transparent background: when the blur is applied, the background surrounding the (circular) image becomes opaque white.

Is there a way to put a gaussian blur on this image such that its transparent background is maintaned?

Maximum Blur Filter Amount On ApplyFilter
Has anyone noticed that, when using applyFilter with a BlurFilter, the blurX and blurY properties will never go higher than half the dimensions of the destination bitmap?

Is there any workaround for this, other than to use a bigger bitmap, then trim it down?

Trying To Add Blur Filter To Kirupa Xmlmenu - What Am I Doing Wrong?
Here's the case. The buttons are by default blured. OnRollover the selected button gets blur cleared. OnRollOut it gets blured again. Here's the code


// generates a list of menu items (effectively one menu)
// given the inputted parameters. This makes the main menu
// as well as any of the submenus
GenerateMenu = function(holder, name, x, y, depth, node_xml) {
// variable declarations
var curr_node;
var curr_item;
var curr_menu = holder.createEmptyMovieClip(name, depth);

// for all items or XML nodes (items and menus)
// within this node_xml passed for this menu
for (var i=0; i<node_xml.childNodes.length; i++) {
// movieclip for each menu item
curr_item = curr_menu.attachMovie("menuitem","item"+i+"_mc", i);
curr_item._x = x;
curr_item._y = y + i*1.5*curr_item._height
curr_item.trackAsMenu = true;

// item properties assigned from XML
curr_node = node_xml.childNodes[i];
curr_item.action = curr_node.attributes.action;
curr_item.variables = curr_node.attributes.variables;
curr_item.name.text = curr_node.attributes.name;

curr_item.onRollOver = curr_item.onDragOver = function(){
};

curr_item.onRollOut = curr_item.onDragOut = function(){
// restore color


};

// any item, menu opening or not can have actions
curr_item.onRelease = function(){
Actions[this.action](this.variables);
CloseSubmenus();
};
} // end for loop

};
// create the main menu, this will be constantly visible
CreateMainMenu = function(x, y, depth, menu_xml){
// generate a menu list
GenerateMenu(this, "mainmenu_mc", x, y, depth, menu_xml.firstChild);
// close only submenus if visible durring a mouseup
// this main menu (mainmenu_mc) will remain
};
// closes all submenus by removing the submenu_mc
// in the main menu (if it exists)
CloseSubmenus = function(){
mainmenu_mc.submenu_mc.removeMovieClip();
};
// This actions object handles methods for actions
// defined by the XML called when a menu item is pressed
Actions = Object();
Actions.gotoURL = function(urlVar){
getURL(urlVar, "_blank");
};
Actions.message = function(msg){
message_txt.text = msg;
};
Actions.newMenu = function(menuxml){
menu_xml.load(menuxml);
};
// load XML, when done, run CreateMainMenu to interpret it
menu_xml = new XML();
menu_xml.ignoreWhite = true;
menu_xml.onLoad = function(ok){
// create main menu after successful loading of XML
if (ok){
CreateMainMenu(10, 10, 0, this);
message_txt.text = "message area";
}else{
message_txt.text = "error: XML not successfully loaded";
}
};
// load first XML menu
menu_xml.load("menu2.xml");

var myBlur = new flash.filters.BlurFilter(20,20,2);
var myTempFilters:Array = this.mainmenu.submenu.filters;
myTempFilters.push(myBlur);
this.mainmenu.submenu.filters = myTempFilters;
circle_mc.onRollOut = function() {
myBlur.blurX = 20;
myBlur.blurY = 20;
this.filters = new Array(myBlur);
}
circle_mc.onRollOver = function() {

myBlur.blurX = 0;
myBlur.blurY = 0;
this.filters = new Array(myBlur);
}

Link Blur Filter With Object Coordinates
Hiz,

What I want to do is link the blur filter with the coordinates of an object I have in a movie.

Like as the x coordinate of an object gets larger the blur amount increases as well, and decreases as the x coordinate gets lower.

Help? Thanks!

Q: Convolution Filter To Create Motion Blur
Hi
Anyone been able to use the convolution filter to create realistic motion blur effects?
Thanks in advance!

AS3 - Sprite Dissapears When Blur Filter Applied
Hi!

Does anyone knows about problems of images/text dissapearing or mask effect failing when a sprite that contains them has a Blur filter applied and then is removed?
Also Textfields with html text with links makes some strange effect when on mouse over. It seems like they move 2 pixels to left o right..

post any link you consider related about such issues.

thanks,

Polaco.

How To Apply Blur Filter On Image In Different Layer?
I have one load which loads image randomly from external folder.

and another layer which has 5 columns. I wish to do a mouse over thing and one of the column will become blur.


I tried to use the blur filter, but can't seem to get it work on image that loads randomly from external folder.

this is the action script code I used for loading external images:

Quote: pic_arr = ["images/1", "images/2", "images/3", "images/4", "images/5"];
onLoad = function() {
ranNum = Math.floor(Math.random()*pic_arr.length);
holder_mc.loadMovie(pic_arr[ranNum]+".jpg");
};



any help?

Unable To Apply Blur Filter On Mouse Down Event
The code below fades three mc instances into each other. The movieclip instances are called, picture1_mc, picture2_mc, picture3_mc. They are based on three bitmap images that also sit in the library. I manually converted the original bitmaps into movieclips on the stage area. The fade code works fine, but what I would like to do is allow the user to
mouse click and cause a blur effect whilst the images are cycling along. My problem is that Im not sure how to apply this within my mousedown function. The applyFilter method seems to call for bitmaps but I'm dealing with movieclips. Thanks for any guidance

import flash.display.BitmapData;
import flash.geom.Point;
import flash.geom.Rectangle;
import flash.filters.BlurFilter;
var filter2:BlurFilter = new BlurFilter(Math.ceil(Math.random()*5), Math.ceil(Math.random()*5), 3);

init = function () {
currentIndex = 1;
currentLayer = 1;
howLongToWait = 0;
_root.attachMovie("picture1_mc", "pic1", 0);
addNewPic();
};
addNewPic = function () {
clearInterval(myInterval);
if (currentIndex%3 != 0) {
currentIndex++;
} else {
currentIndex = 1;
}
newlyAdded_mc = _root.attachMovie("picture"+currentIndex+"_mc", "pic"+currentIndex, currentLayer++);
newlyAdded_mc._alpha = 0;
newlyAdded_mc.onEnterFrame = function() {
this._alpha += 2;
if (this._alpha>=100) {
this.onEnterFrame = null;
myInterval = setInterval(addNewPic, howLongToWait*100);
}
};
};
// run init()
init();
onMouseDown = function ()
{
//problems here!!!!!!!!!
var point:Point = new Point(_root._xmouse, _root._ymouse);
var rec:Rectange = new Rectangle(100,100,6,6);
//problem applying filter
//????.applyFilter(?????,rect,point,filter2)
};
myListener = new Object();
Mouse.addListener(myListener);

Blur Filter Linked To Scale Of Movie Clip?
Hi

Does anybody know how to dynamicaly change the 'strength' of a blur filter depending on the size of a movie clip?

For example, imagine that 'movieClipA' has a powerful blur applied to it when it is only 20 pixels high, but no blur at all when it's 40px high (and different degrees of blur in-between)

I'm trying to make a nav bar that rotates (3d carousel like) and the blur would add to the feeling of depth. I've looked at various tutorials but can't quite achieve what I want - any help appreciated..

Flash 8 Display 'jumping Text' Bug After Blur Filter
I think I found a display bug/glitch with blur effect in Flash 8.
(I'm using the MC TWEEN actionscript method.)

I need to apply a blur filter to a Movieclip with dynamic text.
When scrolling this Movieclip the text 'jumps' about causing visual glitch
and a slow down...
I have tweened the blur filter back to 0 and I have also set
Movieclip.filters=[];

Has anyone else experienced this problem? Is there a fix?

Thanks,
David

Copyright © 2005-08 www.BigResource.com, All rights reserved