Skip to main content
Known Participant
October 6, 2007
Question

Blur effect using actionscript

  • October 6, 2007
  • 1 reply
  • 491 views
How can I make a blur effect using actionscript, not the built-in effect for which I have to use a tween?

Any codes you can give me or links to tutorials?
This topic has been closed for replies.

1 reply

Inspiring
October 6, 2007
serg2049 wrote:
> How can I make a blur effect using actionscript, not the built-in effect for which I have to use a tween?
>
> Any codes you can give me or links to tutorials?

Search help files for new flash.filters.BlurFilter
It show in steps how to set each filter using action script, including all the
parameters, like size

--
Best Regards

Urami


--
"Never play Leap-Frog with a Unicorn."


<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>
serg2049Author
Known Participant
October 6, 2007
Thanks I'll check it out,
serg2049Author
Known Participant
October 7, 2007
Ok, Using flash help file sI did this:

import flash.filters.BlurFilter;
var rect:MovieClip = createRectangle(100, 100, 0x003366, "BlurFilterExample");

var blurX:Number = 30;
var blurY:Number = 30;
var quality:Number = 3;

var filter:BlurFilter = new BlurFilter(blurX, blurY, quality);
var filterArray:Array = new Array();
filterArray.push(filter);
mymovie_mx.filters = filterArray;

It did work, but I have 2 problems with this, one I need it to go from 100% blur to 30%blur.
But my biggest problem is, part of the code I'm using in the animation is actionscript 1, and the above solution is actionscript 2.

Can anyone give me an actionscript 1 solution?