Showing posts with label masked movie clips. Show all posts
Showing posts with label masked movie clips. Show all posts

Thursday, 20 May 2010

How to get the width or height of a masked movie clip in Flash

This obviously goes for height as well...

If you have a masked movie clip and you access its height with as3, the result includes the size of the whole thing, not just the bit that is visible due to the mask, to get around this, name the movie clip that is masking it, and access the width/height of that instead.