How to apply a mask for a bitmap

Hi all,

I want to apply a mask to a bitmap/jpeg/gif image. I also tried the setMask() function but it works for only movie clip and not for the image. Please help me out.
Atleast give me some idea so i can do some research on that.

-soha