Dynamic mask

how to apply a dynamic mask to a movie clip ?
Is it possible in actionscripting ?

Please help me out…
waiting for your reply.