-
Flash - dynamic text color and styles
Another nuance of dynamically loaded text. In order to have your dynamic text have different colors or styles, what you need to do is select the “Render as HTML” button in the properties for your text box. Click either Bold or Italic, in the properties pane, then you need click the embed font button and select the character you want to embed. This will allow you to style that text box with the style you chose.
If however you want to change the text within the same text box that requires a bit more work. You will have to create 3 text boxes 1 on stage and 2 off stage. The one on stage will be the normal style. Embed the characters for that text box, and then for the other two off stage, set one to be bold and the other to be italic, and then embed the characters for those. This will allow you to add dynamic HTML content that has both bold and italic styles in one text box.
I have also found that you should write out in long hand the < and > symbols as &< and &>. Flash doesn’t seem to like to load the content if you aren’t typing them out that way.
One final thing about text color in a dynamic text box. This can be achieved by using the deprecated HTML font tags and adding your color to them. For example:
<FONT COLOR='#721d87'><B>www.grogler.com</B></font>
NOTE - Be sure to use the long hand version of the greater than and less than symbols.


