Skip to main content
Participating Frequently
June 26, 2010
Question

Filter Blur + Mask

  • June 26, 2010
  • 1 reply
  • 4516 views

I know how to mask in Flash and also how  to make a video for Blur on AS3 ...

Filter Blur

var MyBlur: BlurFilter = new BlurFilter(8,8,3);

video
.filters= [MyBlur];

Mask

var box:Sprite = new Sprite();
box
.graphics.beginFill(0x000000);
box
.graphics.drawEllipse(170, 70, 500, 500);
box
.graphics.endFill();

video
.mask=box;

Now how do the two together? Put a mask on a filter?
Detail, the  filter is applied in a video.

Example image q  did in Photoshop.

http://lh6.ggpht.com/_pm11P5sN1bc/TCUsrPbIYAI/AAAAAAAACE8/EqQBAR_tbXA/Torre%20de%20Pisa.jpg

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
June 26, 2010

you wouldn't mask a filter.  you should mask the object to which the filter's been applied.


Participating Frequently
June 26, 2010

I did not understand, specify the code in AS3

kglad
Community Expert
Community Expert
June 26, 2010

:

dobj.filters=[yourblurfilter];

dobj.mask=yourmask;