Jump to content
Search Community

Adding items to blitmasked sprite.

mrEmpty test
Moderator Tag

Recommended Posts

Hello.

 

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:

 

scrollerSprite.addChild(Item);

 

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

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.
×
×
  • Create New...