Jump to content


Adding items to blitmasked sprite.

Recommended Posts



Say you create a sprite and are using a BlitMask on that sprite:


private var scrollerSprite:Sprite = new Sprite();
private var scrollerBlit:BlitMask;

scrollerBlit = new BlitMask(scrollerSprite, 0, 0, scrollerWidth, scrollerHeight, true, true, 0x000000);
scrollerBlit.wrap = true;


All happy. Now, let's say later on you need to add children to scrollerSprite:




That item will not appear for me, it's being masked by the BlitMask. How can I resolve this? I'm updating the mask after adding the child, but this makes no difference. Thanks.

Link to comment
Share on other sites

Ignore me, had to reforce the update.


scrollerBlit.update(null, true);

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.