Masking MCs dinamically

Jello!

How do you turn a dinamically attached MC into a mask?
I know it works if I actually draw the mask with AS, but is it possible using a library MC (animated)?.
Thank you!