Empty MC > Mask Creation

Hey friends…

Has anyone tried to dynamically create MC’s in Actionscript and then add a mask layer to it? Searched many books, but can’t find how to create masks in AS.

I think there must some special trick around levels and then a property of the Mask MC that relates it to the MC being masked…

Any geniuses in the house?

Cheers.
T8