views:

336

answers:

1

I have a mask i'm using for a continuous scroll type thingy, and notice that when my masked sprite gets past a certain pixel size in height (2878) the mask does not mask. Has anyone experienced this? is this a bug?

to reproduce:

create a sprite over 2878 px in height and apply mask, mask breaks

create a sprite 2877 px in height and apply mask, mask works

+1  A: 

I can't verify if that is a hard limit, but there are a bunch of similar size limits for bitmaps in Flash that crop up in various areas. One potential solution would be to use the scrollRect property of your content display object. When you set scrollRect you are essentially creating a rectangular mask and I'm almost positive I've done it with 5000+ pixel wide sprites in the past.

Branden Hall
Thanks Branden, scrollRect is exactly what I needed. Must be a limit on size for masked objects, I guess its 2877 pixels
Ronn