Text Formatting

If i were to format text before written to the document in javascript i would do something like the following…

var string = “This is Bold Text”.bold() + “This is NOT Bold Text”

documrnt.write(string);

What is the equivilent way to do this in action script?

(I want to load text into a dynamic box when called from a button click. That’s working ok! I just need to format certain parts of the string!)

i.e. to be output like this

Name:
Someone

Job Title:
Some Job Title

Responsibilities:
Accounts, Sales etc