Gradine mask in flash

I need to make a mask, like in photoshop for example, with gray tones which provide particular transparency.
I thing that I’ve seen something like this in the past, so obviously it is possible.