# Hide movieclip parts that are out of bounds

I'm making a game where one takes a picture of their face to use on a character. I have them zoom in on the picture, but the bitmapdata extends out of its movieclip. How do I assign bounds to my bitmapdata?

• I decided to try getBounds
– user25191
Mar 30, 2013 at 4:41
• ...and it didn't work
– user25191
Mar 31, 2013 at 14:35
• Since this task is not just relevant to games (I can imagine websites doing this) there may already be an explanation on the main StackOverflow. Apr 3, 2013 at 12:23

Use the scrollRect property of your Bitmap. Here's the API documentation. You might also be interested in the following question/answer.