[osflash] How do you do Masking? Do we need another new way?

Rákos Attila tenegri at tengerstudio.com
Wed Mar 7 04:47:27 EST 2007


i> If you are developing components, and your component need masked
i> bounds, you'll find in fact you need at least THREE display object
i> per one component better, one(A) to be the root of component,
i> one(B) is mask, one(C) is masked, B and C is children of A(In fact
i> this is the design of AsWing AS2 version).

The minimum is 2, since a movieclip (and also a DisplayObject) is
maskable by its own children, too. Although in general I'm satisfied
with the present way of masking, I added a property to visual objects
in my own class library that sets a rectangular mask (using a child
object for masking the parent) and I think that a simple rectangular
clipping region would be a nice thing.

  Attila





More information about the osflash mailing list