Movie clip can be mask?

First, sorry about my English.

I’ll try to explain my doubt:
I’d like to make a mask, where the paint’ll appear litle by litle.
For example, there are some animated squares.
Can I create a movie clipe with some animated layers and transfom it in a mask?

How can I do it?

Thanks,

Lu.
(Brazil)