[Flashcoders] flash 8 Masking blurred BitmapData

2006-01-05 Thread _jan Guichelaar [woedend]

Hi All
(I'm not new to the list but was away for over a year, so hi to you all 
again)


I am working with some new flash 8 features in actionscript, but ran 
into a problem (bug?)


I am taking a snapshot from a mc wtih :

snapshot = new BitmapData(200, 200);

Then draw this into an emty mc with :

mc.draw(snapshot ,new Matrix())

And apply a blur to the new mc with :

mc.filters=[new flash.filters.BlurFilter(80,0,30)];

This all works fine but when i want to mask this blurred mc with :

mc.setMask(_root.maskMc)
There is no mask applied to the mc

If i leave out the blur, the mask will show perfectly

Anybody any ideas?
Flash will be very limited when we can only use the one or two new 
methods etc. at the same time :-(


grtz
jan

--
Jan Guichelaar
---
[EMAIL PROTECTED]
http://www.woedend.nl
---
Woedend!
Magna Plaza
Spuistraat 139 J
1012 SV Amsterdam
---
tel +31 [0]20 6764999
fax +31 [0]20 4714446
---




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flash 8 Masking blurred BitmapData

2006-01-05 Thread Wille Frankenhaeuser

Hi,

have you tried:
maskee.cacheAsBitmap = true;
maskMC.cacheAsBitmap = true;

http://www.kaourantin.net/2005/08/alpha-masking-goodness-in-flash- 
player.html


Wille

On Jan 5, 2006, at 18: 35, _jan Guichelaar [woedend] wrote:


Hi All
(I'm not new to the list but was away for over a year, so hi to you  
all again)


I am working with some new flash 8 features in actionscript, but  
ran into a problem (bug?)


I am taking a snapshot from a mc wtih :

snapshot = new BitmapData(200, 200);

Then draw this into an emty mc with :

mc.draw(snapshot ,new Matrix())

And apply a blur to the new mc with :

mc.filters=[new flash.filters.BlurFilter(80,0,30)];

This all works fine but when i want to mask this blurred mc with :

mc.setMask(_root.maskMc)
There is no mask applied to the mc

If i leave out the blur, the mask will show perfectly

Anybody any ideas?
Flash will be very limited when we can only use the one or two new  
methods etc. at the same time :-(


grtz
jan

--
Jan Guichelaar
---
[EMAIL PROTECTED]
http://www.woedend.nl
---
Woedend!
Magna Plaza
Spuistraat 139 J
1012 SV Amsterdam
---
tel +31 [0]20 6764999
fax +31 [0]20 4714446
---



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Wille Frankenhaeuser
[EMAIL PROTECTED]


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders