Best Way to get part of a image
Hi , i´m trying to achieve a behaviour with bitmaps but a little bit confused.
Objective:
(As shown in image attached)
I have a Movieclip with a static Shape on Stage ( Let´s say ... a star)
I would like to load a image(img1) , then i would be able to, rotate, zoom , and pan the image(img1).
Then i would have only the star but filled with the part of the image that fitted that star.
I was trying to get bitmapData from the image, then draw the star on the image.... And at end, compare color pixels and only getting the ones i want to.... but i get a big mess with the rotations, scale and position of star to be exactly on the place it should be draw...
Something tell´s me that i´m missing a point and it should be easier...
Can anyone give me directions ?
It´s a kind of masking, but i want to save that image only then...
Thanks in advance!

