Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bolding Text in Dynamic Text Box 1

Status
Not open for further replies.

johnacb

Technical User
Apr 13, 2003
48
0
0
AU
Hi All

I have created a dynamic text box and I want to bold the first line of every paragraph.

When I do this to the text and preview it Bolds all the text in the text box.

I am using Flash MX, Dynamic text in a text box that is scrollable.

Any help greatly appreciated
 
Is the text loaded in from a text file, or are you typing it directly in the textfield, or setting it with AS?

Regards,

cubalibre2.gif
 
Typing it directly into the text box
 
You'll probably have to resort to html formated text.
Give an instance name to your textfield, clear it of any typed in text and of any variable in the Var box if you have set one, and define the text with AS...

my_textfield.html = true; // Or select the html tab (<>)
my_textfield.htmlText = &quot;Hello <b>World</b>!&quot;;

For the 11 only html1.0 tags officially supported by Flash...


Regards,

cubalibre2.gif
 
Thanks oldnewbie

will give it a go.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top