I found an answer in: http://www.quasimondo.com/archives/000594.php
Who made a nice class for it :). regards, Meinte On 2/21/06, Meinte van't Kruis <[EMAIL PROTECTED]> wrote: > > Hi folks, > > This question has been asked before by franto > (http://chattyfig.figleaf.com/pipermail/flashcoders/2005-September/149277.html > ), but it doesn't include an answer :(. > > I'm facing the exact same problem; > > Simply put, how to make a mask from a transparent bitmatdata.. > I can see in flash it is transparent, but once I use Setmask, it only uses > the rectangular bounds of the bitmapdata. > > What am I doing wrong? > > here's the (short version) of the code: > > var bmp=new BitmapData(_root.m._width,_root.m._height,true,0x00000000); > bmp.draw(_root.m); > _root.createEmptyMovieClip("mask",2); > _root.mask.attachBitmap(bmp,1); > _root.foto.setMask(_root.mask); > > > _root.m is a movieclip, within it a loadMovie'd transparent gif. The code > above is only executed after _root.m._width>0.. > > thanks, > > Meinte > > _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

