I know this sounds like a really obvious question, but it’s proving harder to figure out than I thought. I’m developing in Flash 8/ActionScript 2.0.
I have a label component, and I’m dynamically assigning it text from an xml document. For example:
label.text = '<b>' + xml_node.firstChild + '</b>';
This successfully changes the label’s text to whatever is in that XML node, and since I enabled HTML, it makes it bold. However, I want to increase the size of the label’s font, and using <font> tags won’t work.
Am I missing something? How do I make the font larger? ActionScript is just so picky!
Thanks for everyone’s input! After reading David Arno’s post, I figured it out. Here’s what I was doing.
Here’s what works:
I just tried different ways of typing 24 in there, and the single quotes worked. Also, don’t forget to set HTML to true from the label’s Parameters tab.