> - draw with draw api a gradient fill in a movieclip (mask_mc), > 0x00ffffff to 0xffffffff > - create a new BitmapData (mask_bd) to copy the content of the gradient > mask > - draw mask_mc in mask_bd > - create a new BitmapData (image_bd) to contain the movieclip to be masked > - draw the movieclip in image_bd > - create a new BitmapData (picture_bd) to contain the final result > - copy image_bd to picture_bd using mask_bd as mask
Step one is fine. The rest are completely unnecessary. This is the first comment on one of Grant Skinners blogs posts (see http://www.gskinner.com/blog/archives/2005/08/flash_8_alpha_m.html): Actually FP8 has alpha masks. It's implemented through the bitmap caching functionality. Try something like this: mc1.cacheAsBitmap = true; mc2.cacheAsBitmap = true; mc1.setMask(mc2); *Posted by:* Tinic Uro at August 9, 2005 02:12 PM The more Bitmap data you're sending around the heavier the processor will be. CacheAsBitmap will do just fine. Tyler _______________________________________________ Flashcoders@chattyfig.figleaf.com 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