Use loaded PNG as hitarea

is there a way to assign a dynamically created movie clip the hitarea of a PNG file that is loaded into it via actionscript, basically creating a none square/circle hitarea that is a mask of the bitmap image. hopefully I’m making myself clear, thanks in advance.