# \*Bounding box of a gradient masked movie clip

**URL:** <https://forum.kirupa.com/t/bounding-box-of-a-gradient-masked-movie-clip/253225>\
**Category:** Uncategorized\
**Created:** [February 28, 2008, 7:57am UTC](https://forum.kirupa.com/t/bounding-box-of-a-gradient-masked-movie-clip/253225 "2008-02-28T07:57:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deluxmilkman](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@deluxmilkman](https://forum.kirupa.com/u/deluxmilkman)\
**Post date:** [February 28, 2008, 7:57am UTC](https://forum.kirupa.com/t/bounding-box-of-a-gradient-masked-movie-clip/253225/1 "2008-02-28T07:57:10Z")

</div>

I have a movie clip with a gradient mask.  
now I would like to have the bounding box of this movie clip reduced to the visible(masked) area,  
so that I can get its x and y positions.

is it even possible?

```auto

mc1.cacheAsBitmap = true;
mc2.cacheAsBitmap = true;
mc1.setMask("mc2");

```

mc1 and mc2 are the same size and the shape of the mask is constantly changing.
