Skip to main content
Inspiring
May 14, 2009
Question

Why do masks kill dynamic btns?

  • May 14, 2009
  • 2 replies
  • 1479 views

I can't see why this would happen but the btns just simply won't appear when I add a mask to my stage...

Simple call from document class:

btns = new ButtonSet();

btns.addButtons([restaurant_btn, owner_btn, chef_btn]);

addChild(btns);

I have a mask on the stage, if I remove the mask, the buttons show, if I put the mask back, the buttons go away....

Anyone know why?

Thanks in advance

This topic has been closed for replies.

2 replies

Inspiring
May 14, 2009

I have now made the mask dunamically but this does not answer my question so if anyone knows please tell me.

Thanks

Inspiring
May 14, 2009

Hi Ned, they are MovieClips with timelines and labels. Their Base Class is a disabling button class and they are fed into a ButtonSet class via the Document.as as you can see above.

Pretty simple really

Ned Murphy
Legend
May 14, 2009

I meant what kind of content is living in them, but I'll cut it to the quick... if they involve dynamic textfields, you need to embed the fonts in order to have the text appear under a mask.

Ned Murphy
Legend
May 14, 2009

What do these buttons consist of?