• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Lesson 9. Setting Text Dynamically > Formatting Dynamic Text

Formatting Dynamic Text

The dynamic text field is functioning rather nicely at this point. It doesn't look too bad, either. But the text is in need of some formatting help. For example, it would be good to set the title on its own line in bold, and have the body text start a few lines beneath it. Now, you can't just add some hard returns to add space in the ActionScript, because it won't compile correctly. You need to add a new line of characters to the text string, which Flash will correctly interpret and display accordingly. And that is possible using HTML tags.

In this task, you will take advantage of the fact that you set the dynamic text field to HTML, rather than plain text. To do so, you'll mark up your text strings with regular HTML tags. If you don't know HTML, don't worry—I'll tell you everything you need to know. And now you have one more reason to learn.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint