actionscript textfield display issue

Posted by simon on Stack Overflow See other posts from Stack Overflow or by simon
Published on 2010-03-26T05:38:07Z Indexed on 2010/03/26 5:43 UTC
Read the original article Hit count: 375

Filed under:

I have a textfield inside a rectangle (Sprite). The text fits inside the rectangle just fine, however the actual size of the textfield is larger than that of the sprite. (invisible top margin in the font)

The problem is when I added an eventlistener to the Sprite that detects mouse clicks, it fires even when I click outside of the rectangle. How can I fix this? (so that child object size does not exceed parent size)

© Stack Overflow or respective owner

Related posts about actionscript-3