AS dyn text pixel width?
AS dyn text pixel width?
Out of context: Reply #2
- Started
- Last post
- 3 Responses
- wade0
Yes, thanks. I'm still having an issue with the text box going off-center. Why is this?
Code:
bar.title.text = "Hello.";
bar.title.autoSize = true;if (bar.title.text.length >= 15) {
bar.box._width += 10;
bar.right._x += 5;
bar.left._x -= 5;
} else if (bar.title.text.length < 7) {
bar.box._width -= 40;
bar.right._x -= 20;
bar.left._x += 20;
}