How do you create mask using only AS3?

Hey,

I have been doing a search to find out how to create a simple mask using only AS3 but I am not having any luck. Would you be willing to to give me a quick example of how to create a mask with AS3?

Thanks if you can!

EDIT: I realized that I posted this in the wrong forum. If someone with power wants to delete this post that would be a-o-k!